feed

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: 66 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 is show service.

func New

func New(c *conf.Config) (s *Service)

New new a 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) BlackList

func (s *Service) BlackList(c context.Context, mid int64) (aidm map[int64]struct{}, err error)

func (*Service) Converge

func (s *Service) Converge(c context.Context, mid int64, plat int8, param *feed.ConvergeParam, now time.Time) (is []card.Handler, converge *operate.Card, err error)

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

func (s *Service) Index2(c context.Context, buvid string, mid int64, plat int8, param *feed.IndexParam, style int, now time.Time) (is []card.Handler, config *feed.Config, infoc *feed.Infoc, err error)

func (*Service) IndexInfoc

func (s *Service) IndexInfoc(c context.Context, mid int64, plat int8, build int, buvid, disid, api string, userFeature json.RawMessage, style, code int, items []*ai.Item, isRcmd, pull, newUser bool, now time.Time, adResponse, deviceID, network string, flush int, autoPlay string, deviceType int)

func (*Service) Menus

func (s *Service) Menus(c context.Context, plat int8, build int, now time.Time) (menus []*operate.Menu)

func (*Service) RankCard

func (s *Service) RankCard(plat int8) (ranks []*rank.Rank, aids []int64)

func (*Service) SearchFollow

func (s *Service) SearchFollow(c context.Context, platform, mobiApp, device, buvid string, build int, mid int64) (follow *operate.Follow, err error)

func (*Service) SearchFollow2

func (s *Service) SearchFollow2(c context.Context, platform, mobiApp, device, buvid string, build int, mid int64) (follow *operate.Card, err error)

func (*Service) UnreadCount

func (s *Service) UnreadCount(c context.Context, mid int64, plat int8, build int, now time.Time) (total, feedCount, articleCount int)

func (*Service) UpRcmdCache

func (s *Service) UpRcmdCache(c context.Context, is []*ai.Item) (err error)

func (*Service) Upper

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 (*Service) UpperArchive

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 (*Service) UpperArticle

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 (*Service) UpperBangumi

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 (*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

func (*Service) UpperLive

func (s *Service) UpperLive(c context.Context, mid int64) (is []*feed.Item, count int)

func (*Service) UpperRecent

func (s *Service) UpperRecent(c context.Context, mid, upperID, aid int64, now time.Time) (is []*feed.Item)

Jump to

Keyboard shortcuts

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