Documentation ¶
Index ¶
- type Service
- func (s *Service) ArchivesWithPlayer(c context.Context, aids []int64, qn int, platform string, ...) (res map[int64]*archive.ArchiveWithPlayer, err error)
- func (s *Service) Category(c context.Context, plat int8) (res []*channel.Category, err error)
- func (s *Service) Discover(c context.Context, id, mid int64, plat int8) (res []*channel.Channel, err error)
- func (s *Service) Index(c context.Context, mid, channelID, idx int64, plat int8, ...) (res *feed.Show, err error)
- func (s *Service) Index2(c context.Context, mid, channelID, idx int64, plat int8, ...) (res *feed.Show2, err error)
- func (s *Service) List(c context.Context, mid int64, plat int8, build, limit int, ...) (res *channel.List, err error)
- func (s *Service) Mysub(c context.Context, mid int64, limit int) (res *channel.Mysub, err error)
- func (s *Service) OperationInfoc(mobiApp, device, operation string, build, from int, channelID, mid int64, ...)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Recommend(c context.Context, mid int64, plat int8) (res []*channel.Channel, err error)
- func (s *Service) RegionList(c context.Context, plat int8, build int, mobiApp, device, lang string) (regionTop, regionBottom, regions []*channel.Region, err error)
- func (s *Service) Square(c context.Context, mid int64, plat int8, build int, loginEvent int32, ...) (res *channel.Square, err error)
- func (s *Service) Subscribe(c context.Context, mid int64, limit int) (res []*channel.Channel, err error)
- func (s *Service) SubscribeAdd(c context.Context, mid, id int64, now time.Time) (err error)
- func (s *Service) SubscribeCancel(c context.Context, mid, id int64, now time.Time) (err error)
- func (s *Service) SubscribeUpdate(c context.Context, mid int64, ids string) (err error)
- func (s *Service) Tab(c context.Context, tid, mid int64, tname string, plat int8) (res *channel.Tab, err error)
- func (s *Service) TabList(c context.Context, channelID, mid int64, channelName, mobiApp string, ...) (res *feed.Tab, 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 channel
func (*Service) ArchivesWithPlayer ¶
func (s *Service) ArchivesWithPlayer(c context.Context, aids []int64, qn int, platform string, fnver, fnval, build int) (res map[int64]*archive.ArchiveWithPlayer, err error)
ArchivesWithPlayer archives witch player
func (*Service) Discover ¶
func (s *Service) Discover(c context.Context, id, mid int64, plat int8) (res []*channel.Channel, err error)
Discover 发现频道页(推荐走recommend接口,有分类的揍list接口)
func (*Service) Index ¶
func (s *Service) Index(c context.Context, mid, channelID, idx int64, plat int8, mobiApp, device, buvid, channelName string, build, loginEvent, displayID, qn, fnver, fnval int, pull bool, now time.Time) (res *feed.Show, err error)
Index channel index
func (*Service) Index2 ¶
func (s *Service) Index2(c context.Context, mid, channelID, idx int64, plat int8, mobiApp, device, buvid, channelName, ip string, build, loginEvent, displayID, qn, fnver, fnval int, pull bool, now time.Time) (res *feed.Show2, err error)
Index channel index
func (*Service) List ¶
func (s *Service) List(c context.Context, mid int64, plat int8, build, limit int, ver, mobiApp, device, lang string) (res *channel.List, err error)
List 频道tab页
func (*Service) OperationInfoc ¶
func (s *Service) OperationInfoc(mobiApp, device, operation string, build, from int, channelID, mid int64, now time.Time)
OperationInfoc channel operation infoc
func (*Service) Recommend ¶
func (s *Service) Recommend(c context.Context, mid int64, plat int8) (res []*channel.Channel, err error)
Recommend 推荐
func (*Service) RegionList ¶
func (s *Service) RegionList(c context.Context, plat int8, build int, mobiApp, device, lang string) (regionTop, regionBottom, regions []*channel.Region, err error)
RegionList 分区信息
func (*Service) Square ¶
func (s *Service) Square(c context.Context, mid int64, plat int8, build int, loginEvent int32, mobiApp, device, lang, buvid string) (res *channel.Square, err error)
Square 频道广场页
func (*Service) Subscribe ¶
func (s *Service) Subscribe(c context.Context, mid int64, limit int) (res []*channel.Channel, err error)
Subscribe 我订阅的tag(老) standard放前面用户自定义custom放后面
func (*Service) SubscribeAdd ¶
SubscribeAdd subscribe add
func (*Service) SubscribeCancel ¶
SubscribeCancel subscribe channel
func (*Service) SubscribeUpdate ¶
SubscribeUpdate subscribe update
Click to show internal directories.
Click to hide internal directories.