Documentation ¶
Index ¶
- type Service
- func (s *Service) Abilities(c context.Context, p *model.ParamLeidas) (rs interface{}, err error)
- func (s *Service) ActKnockout(c context.Context, madID int64) (res [][]*model.TreeList, err error)
- func (s *Service) ActModules(c context.Context, mmid int64) (res []*arcmdl.Arc, err error)
- func (s *Service) ActPage(c context.Context, aid int64) (res *model.ActivePage, err error)
- func (s *Service) ActPoints(c context.Context, mid int64, param *model.ParamActPoint) (res []*model.Contest, total int, err error)
- func (s *Service) ActTop(c context.Context, mid int64, param *model.ParamActTop) (res []*model.Contest, total int, err error)
- func (s *Service) AddFav(c context.Context, mid, cid int64) (err error)
- func (s *Service) AppSeason(c context.Context, p *model.ParamSeason) (rs []*model.Season, count int, err error)
- func (s *Service) ArcsInfo(c context.Context, aids []int64) (arc []*arcmdl.Arc, err error)
- func (s *Service) BuildKnockTree(c context.Context)
- func (s *Service) Calendar(c context.Context, p *model.ParamFilter) (rs []*model.Calendar, err error)
- func (s *Service) Contest(c context.Context, mid, cid int64) (res *model.ContestDataPage, err error)
- func (s *Service) ContestCommon(c context.Context, mid int64, p *model.ParamContest) (rs []*model.Contest, total int, err error)
- func (s *Service) ContestInfo(c context.Context, cids []int64, cData []*model.Contest, ...) (rs []*model.Contest)
- func (s *Service) ContestInfos(contest *model.Contest, teams map[int64]*model.Team, ...)
- func (s *Service) DelFav(c context.Context, mid, cid int64) (err error)
- func (s *Service) FilterMatch(c context.Context, p *model.ParamFilter) (rs map[string][]*model.Filter, err error)
- func (s *Service) FilterVideo(c context.Context, p *model.ParamFilter) (rs map[string][]*model.Filter, err error)
- func (s *Service) Game(c context.Context, p *model.ParamGame) (rs map[int64]*model.Game, err error)
- func (s *Service) Heroes(c context.Context, p *model.ParamLeidas) (rs interface{}, err error)
- func (s *Service) Items(c context.Context, p *model.ParamLeidas) (rs map[int64]*model.Item, err error)
- func (s *Service) ListAppFav(c context.Context, mid int64, p *model.ParamFav) (rs []*model.Contest, count int, err error)
- func (s *Service) ListContest(c context.Context, mid int64, p *model.ParamContest) (rs []*model.Contest, total int, err error)
- func (s *Service) ListFav(c context.Context, mid, vmid int64, pn, ps int) (rs []*model.Contest, count int, err error)
- func (s *Service) ListVideo(c context.Context, p *model.ParamVideo) (rs []*arcmdl.Arc, total int, err error)
- func (s *Service) MatchAct(c context.Context, aid int64) (act *model.Active, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Players(c context.Context, p *model.ParamLeidas) (rs interface{}, err error)
- func (s *Service) Recent(c context.Context, mid int64, param *model.ParamCDRecent) (res []*model.Contest, err error)
- func (s *Service) Search(c context.Context, mid int64, p *model.ParamSearch, buvid string) (rs *model.SearchEsp, err error)
- func (s *Service) Season(c context.Context, p *model.ParamSeason) (rs []*model.Season, count int, err error)
- func (s *Service) SeasonFav(c context.Context, mid int64, p *model.ParamSeason) (rs []*model.Season, count int, err error)
- func (s *Service) StimeFav(c context.Context, mid int64, p *model.ParamSeason) (rs []string, count int, err error)
- func (s *Service) TeamMap(ctx context.Context) (res map[int64]*model.Filter, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service service struct.
func (*Service) ActKnockout ¶
ActKnockout knockout tree
func (*Service) ActModules ¶
ActModules matchs active videos
func (*Service) ActPoints ¶
func (s *Service) ActPoints(c context.Context, mid int64, param *model.ParamActPoint) (res []*model.Contest, total int, err error)
ActPoints act match point match
func (*Service) ActTop ¶
func (s *Service) ActTop(c context.Context, mid int64, param *model.ParamActTop) (res []*model.Contest, total int, err error)
ActTop act match top data
func (*Service) AppSeason ¶
func (s *Service) AppSeason(c context.Context, p *model.ParamSeason) (rs []*model.Season, count int, err error)
AppSeason app season list.
func (*Service) BuildKnockTree ¶
BuildKnockTree knock tree.
func (*Service) Calendar ¶
func (s *Service) Calendar(c context.Context, p *model.ParamFilter) (rs []*model.Calendar, err error)
Calendar contest calendar count
func (*Service) Contest ¶
func (s *Service) Contest(c context.Context, mid, cid int64) (res *model.ContestDataPage, err error)
Contest contest data.
func (*Service) ContestCommon ¶
func (s *Service) ContestCommon(c context.Context, mid int64, p *model.ParamContest) (rs []*model.Contest, total int, err error)
ContestCommon act match same deal logic
func (*Service) ContestInfo ¶
func (s *Service) ContestInfo(c context.Context, cids []int64, cData []*model.Contest, teams, seasons []*model.Filter, mid int64) (rs []*model.Contest)
ContestInfo contest add team season.
func (*Service) ContestInfos ¶
func (s *Service) ContestInfos(contest *model.Contest, teams map[int64]*model.Team, season map[int64]*model.Season)
ContestInfos contest infos.
func (*Service) FilterMatch ¶
func (s *Service) FilterMatch(c context.Context, p *model.ParamFilter) (rs map[string][]*model.Filter, err error)
FilterMatch filter match.
func (*Service) FilterVideo ¶
func (s *Service) FilterVideo(c context.Context, p *model.ParamFilter) (rs map[string][]*model.Filter, err error)
FilterVideo filter video.
func (*Service) Items ¶
func (s *Service) Items(c context.Context, p *model.ParamLeidas) (rs map[int64]*model.Item, err error)
Items get items.
func (*Service) ListAppFav ¶
func (s *Service) ListAppFav(c context.Context, mid int64, p *model.ParamFav) (rs []*model.Contest, count int, err error)
ListAppFav list favorite contests.
func (*Service) ListContest ¶
func (s *Service) ListContest(c context.Context, mid int64, p *model.ParamContest) (rs []*model.Contest, total int, err error)
ListContest contest list.
func (*Service) ListFav ¶
func (s *Service) ListFav(c context.Context, mid, vmid int64, pn, ps int) (rs []*model.Contest, count int, err error)
ListFav list favorite contests.
func (*Service) ListVideo ¶
func (s *Service) ListVideo(c context.Context, p *model.ParamVideo) (rs []*arcmdl.Arc, total int, err error)
ListVideo video list.
func (*Service) Recent ¶
func (s *Service) Recent(c context.Context, mid int64, param *model.ParamCDRecent) (res []*model.Contest, err error)
Recent contest recents.
func (*Service) Search ¶
func (s *Service) Search(c context.Context, mid int64, p *model.ParamSearch, buvid string) (rs *model.SearchEsp, err error)
Search search video list.
func (*Service) Season ¶
func (s *Service) Season(c context.Context, p *model.ParamSeason) (rs []*model.Season, count int, err error)
Season season list.
func (*Service) SeasonFav ¶
func (s *Service) SeasonFav(c context.Context, mid int64, p *model.ParamSeason) (rs []*model.Season, count int, err error)
SeasonFav list favorite season.