Documentation ¶
Index ¶
- type Service
- func (s *Service) Actives(c context.Context, id, mid int64, now time.Time) (items []*feed.Item, cover string, isBnj bool, bnjDays int, err error)
- func (s *Service) Actives2(c context.Context, id, mid int64, mobiApp string, plat int8, ...) (items []card.Handler, cover string, isBnj bool, bnjDays int, err error)
- func (s *Service) ArchivesWithPlayer(c context.Context, aids []int64, qn int, platform string, ...) (res map[int64]*archive.ArchiveWithPlayer, err error)
- func (s *Service) Audit(c context.Context, mobiApp string, plat int8, build int) (is []*feed.Item, ok bool)
- func (s *Service) Audit2(c context.Context, mobiApp string, plat int8, build int, ...) (is []card.Handler, ok bool)
- func (s *Service) BlackList(c context.Context, mid int64) (aidm map[int64]struct{}, err error)
- func (s *Service) Converge(c context.Context, mid int64, plat int8, param *feed.ConvergeParam, ...) (is []card.Handler, converge *operate.Card, err error)
- func (s *Service) Dislike(c context.Context, mid, id int64, buvid, gt string, ...) (err error)
- func (s *Service) DislikeCancel(c context.Context, mid, id int64, buvid, gt string, ...) (err error)
- func (s *Service) Index(c context.Context, mid int64, plat int8, build int, ...) (is []*feed.Item, userFeature json.RawMessage, isRcmd, newUser bool, ...)
- func (s *Service) Index2(c context.Context, buvid string, mid int64, plat int8, param *feed.IndexParam, ...) (is []card.Handler, config *feed.Config, infoc *feed.Infoc, err error)
- func (s *Service) IndexInfoc(c context.Context, mid int64, plat int8, build int, buvid, disid, api string, ...)
- func (s *Service) Menus(c context.Context, plat int8, build int, now time.Time) (menus []*operate.Menu)
- func (s *Service) RankCard(plat int8) (ranks []*rank.Rank, aids []int64)
- func (s *Service) SearchFollow(c context.Context, platform, mobiApp, device, buvid string, build int, ...) (follow *operate.Follow, err error)
- func (s *Service) SearchFollow2(c context.Context, platform, mobiApp, device, buvid string, build int, ...) (follow *operate.Card, err error)
- func (s *Service) UnreadCount(c context.Context, mid int64, plat int8, build int, now time.Time) (total, feedCount, articleCount int)
- func (s *Service) UpRcmdCache(c context.Context, is []*ai.Item) (err error)
- func (s *Service) Upper(c context.Context, mid int64, plat int8, build int, pn, ps int, now time.Time) (is []*feed.Item, lp bool)
- func (s *Service) UpperArchive(c context.Context, mid int64, plat int8, build int, pn, ps int, now time.Time) (is []*feed.Item, lp bool)
- func (s *Service) UpperArticle(c context.Context, mid int64, plat int8, build int, pn, ps int, now time.Time) (is []*feed.Item, lp bool)
- func (s *Service) UpperBangumi(c context.Context, mid int64, plat int8, build int, pn, ps int, now time.Time) (is []*feed.Item, lp bool)
- func (s *Service) UpperFeed(c context.Context, mid int64, plat int8, build int, pn, ps int, now time.Time) (is []*feed.Item, lp bool)
- func (s *Service) UpperLive(c context.Context, mid int64) (is []*feed.Item, count int)
- func (s *Service) UpperRecent(c context.Context, mid, upperID, aid int64, now time.Time) (is []*feed.Item)
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 is show service.
func (*Service) Actives ¶
func (s *Service) Actives(c context.Context, id, mid int64, now time.Time) (items []*feed.Item, cover string, isBnj bool, bnjDays int, err error)
Actives return actives
func (*Service) Actives2 ¶
func (s *Service) Actives2(c context.Context, id, mid int64, mobiApp string, plat int8, build, forceHost int, now time.Time) (items []card.Handler, cover string, isBnj bool, bnjDays int, err error)
Actives2 return actives
func (*Service) ArchivesWithPlayer ¶
func (s *Service) ArchivesWithPlayer(c context.Context, aids []int64, qn int, platform string, fnver, fnval, forceHost, build int) (res map[int64]*archive.ArchiveWithPlayer, err error)
ArchivesWithPlayer archives witch player
func (*Service) Audit ¶
func (s *Service) Audit(c context.Context, mobiApp string, plat int8, build int) (is []*feed.Item, ok bool)
Audit check audit plat then return audit data.
func (*Service) Audit2 ¶
func (s *Service) Audit2(c context.Context, mobiApp string, plat int8, build int, column cdm.ColumnStatus) (is []card.Handler, ok bool)
Audit2 check audit plat and ip, then return audit data.
func (*Service) Dislike ¶
func (s *Service) Dislike(c context.Context, mid, id int64, buvid, gt string, reasonID, cmreasonID, feedbackID, upperID, rid, tagID int64, adcb string, now time.Time) (err error)
Dislike is.
func (*Service) DislikeCancel ¶
func (s *Service) DislikeCancel(c context.Context, mid, id int64, buvid, gt string, reasonID, cmreasonID, feedbackID, upperID, rid, tagID int64, adcb string, now time.Time) (err error)
DislikeCancel is.
func (*Service) Index ¶
func (s *Service) Index(c context.Context, mid int64, plat int8, build int, buvid, network, mobiApp, device, platform, openEvent string, loginEvent int, idx int64, pull bool, now time.Time, bannerHash, adExtra string, qn int, interest string, style, flush, fnver, fnval, autoplayCard int) (is []*feed.Item, userFeature json.RawMessage, isRcmd, newUser bool, code, clean int, autoPlayInfoc string, err error)
Index is
func (*Service) IndexInfoc ¶
func (*Service) SearchFollow ¶
func (*Service) SearchFollow2 ¶
func (*Service) UnreadCount ¶
func (*Service) UpRcmdCache ¶
func (*Service) UpperArchive ¶
func (*Service) UpperArticle ¶
func (*Service) UpperBangumi ¶
func (*Service) UpperFeed ¶
func (s *Service) UpperFeed(c context.Context, mid int64, plat int8, build int, pn, ps int, now time.Time) (is []*feed.Item, lp bool)
UpperFeed get the archives and bangumi for feed if archives are less then `_minTotalCnt` then will fill with recommended archives
Click to show internal directories.
Click to hide internal directories.