service

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) *Service

New new service.

func (*Service) Abilities

func (s *Service) Abilities(c context.Context, p *model.ParamLeidas) (rs interface{}, err error)

Abilities lol:spells;dota2:abilities.

func (*Service) ActKnockout

func (s *Service) ActKnockout(c context.Context, madID int64) (res [][]*model.TreeList, err error)

ActKnockout knockout tree

func (*Service) ActModules

func (s *Service) ActModules(c context.Context, mmid int64) (res []*arcmdl.Arc, err error)

ActModules matchs active videos

func (*Service) ActPage

func (s *Service) ActPage(c context.Context, aid int64) (res *model.ActivePage, err error)

ActPage matchs active page info

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) AddFav

func (s *Service) AddFav(c context.Context, mid, cid int64) (err error)

AddFav add favorite contest.

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) ArcsInfo

func (s *Service) ArcsInfo(c context.Context, aids []int64) (arc []*arcmdl.Arc, err error)

ArcsInfo archive info

func (*Service) BuildKnockTree

func (s *Service) BuildKnockTree(c context.Context)

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) DelFav

func (s *Service) DelFav(c context.Context, mid, cid int64) (err error)

DelFav delete favorite contest.

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) Game

func (s *Service) Game(c context.Context, p *model.ParamGame) (rs map[int64]*model.Game, err error)

Game get game.

func (*Service) Heroes

func (s *Service) Heroes(c context.Context, p *model.ParamLeidas) (rs interface{}, err error)

Heroes lol:champions ; dota2 heroes.

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) MatchAct

func (s *Service) MatchAct(c context.Context, aid int64) (act *model.Active, err error)

MatchAct match act

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping ping service.

func (*Service) Players

func (s *Service) Players(c context.Context, p *model.ParamLeidas) (rs interface{}, err error)

Players get players.

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.

func (*Service) StimeFav

func (s *Service) StimeFav(c context.Context, mid int64, p *model.ParamSeason) (rs []string, count int, err error)

StimeFav list favorite contests stime.

func (*Service) TeamMap

func (s *Service) TeamMap(ctx context.Context) (res map[int64]*model.Filter, err error)

TeamMap get team and map team id to team

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL