Documentation
¶
Index ¶
- func NewDashboardUsecase(repo domain.DashboardRepo) domain.DashboardUsecase
- type DashboardUsecase
- func (u *DashboardUsecase) CategoryStat(ctx context.Context, req domain.StatisticsFilter) (*domain.CategoryStat, error)
- func (u *DashboardUsecase) Statistics(ctx context.Context) (*domain.Statistics, error)
- func (u *DashboardUsecase) TimeStat(ctx context.Context, req domain.StatisticsFilter) (*domain.TimeStat, error)
- func (u *DashboardUsecase) UserCodeRank(ctx context.Context, req domain.StatisticsFilter) ([]*domain.UserCodeRank, error)
- func (u *DashboardUsecase) UserEvents(ctx context.Context, req domain.StatisticsFilter) ([]*domain.UserEvent, error)
- func (u *DashboardUsecase) UserHeatmap(ctx context.Context, userID string) (*domain.UserHeatmapResp, error)
- func (u *DashboardUsecase) UserStat(ctx context.Context, req domain.StatisticsFilter) (*domain.UserStat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDashboardUsecase ¶
func NewDashboardUsecase(repo domain.DashboardRepo) domain.DashboardUsecase
Types ¶
type DashboardUsecase ¶
type DashboardUsecase struct {
// contains filtered or unexported fields
}
func (*DashboardUsecase) CategoryStat ¶
func (u *DashboardUsecase) CategoryStat(ctx context.Context, req domain.StatisticsFilter) (*domain.CategoryStat, error)
func (*DashboardUsecase) Statistics ¶
func (u *DashboardUsecase) Statistics(ctx context.Context) (*domain.Statistics, error)
func (*DashboardUsecase) TimeStat ¶
func (u *DashboardUsecase) TimeStat(ctx context.Context, req domain.StatisticsFilter) (*domain.TimeStat, error)
func (*DashboardUsecase) UserCodeRank ¶
func (u *DashboardUsecase) UserCodeRank(ctx context.Context, req domain.StatisticsFilter) ([]*domain.UserCodeRank, error)
func (*DashboardUsecase) UserEvents ¶
func (u *DashboardUsecase) UserEvents(ctx context.Context, req domain.StatisticsFilter) ([]*domain.UserEvent, error)
func (*DashboardUsecase) UserHeatmap ¶
func (u *DashboardUsecase) UserHeatmap(ctx context.Context, userID string) (*domain.UserHeatmapResp, error)
func (*DashboardUsecase) UserStat ¶
func (u *DashboardUsecase) UserStat(ctx context.Context, req domain.StatisticsFilter) (*domain.UserStat, error)
Click to show internal directories.
Click to hide internal directories.