Documentation ¶
Index ¶
- type Service
- func (s *Service) AddCoin(c context.Context, aid, mid, upID, avtype, multiply int64, ak string, ...) (prompt, like bool, err error)
- func (s *Service) AddFav(c context.Context, mid, vmid int64, fids []int64, aid int64, ak string) (prompt bool, err error)
- func (s *Service) AddShare(c context.Context, aid, mid int64, ip string) (share int, isReport bool, upID int64, err error)
- func (s *Service) Bnj2019(c context.Context, mid int64, relateID int64) (bnj *view.BnjMain, err error)
- func (s *Service) BnjItem(c context.Context, aid, mid int64) (item *view.BnjItem, err error)
- func (s *Service) BnjList(c context.Context, mid int64) (list *view.BnjList, err error)
- func (s *Service) CheckAccess(mid int64) bool
- func (s *Service) Dislike(c context.Context, aid, mid int64, status int8) (upperID int64, err error)
- func (s *Service) Follow(c context.Context, vmid, mid int64) (res *creative.PlayerFollow, err error)
- func (s *Service) Like(c context.Context, aid, mid int64, status int8) (upperID int64, toast string, err error)
- func (s *Service) LikeTriple(c context.Context, aid, mid int64, ak string) (res *view.TripleRes, err error)
- func (s *Service) Paster(c context.Context, plat, adType int8, aid, typeID, buvid string) (p *resource.Paster, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) RelateInfoc(mid, aid int64, plat int, ...)
- func (s *Service) Shot(c context.Context, aid, cid int64) (shot *view.Videoshot, err error)
- func (s *Service) UpperRecmd(c context.Context, plat int8, platform, mobiApp, device, buvid string, ...) (res card.Handler, err error)
- func (s *Service) View(c context.Context, mid, aid, movieID int64, plat int8, ...) (v *view.View, err error)
- func (s *Service) ViewInfoc(mid int64, plat int, trackid, aid, ip, api, build, buvid, disid, from string, ...)
- func (s *Service) ViewPage(c context.Context, mid, aid, movieID int64, plat int8, build int, ...) (v *view.View, err error)
- func (s *Service) VipPlayURL(c context.Context, aid, cid, mid int64) (res *view.VipPlayURL, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // mamager cache RelateCache []*manager.Relate // view relate game from AI RelateGameCache map[int64]int64 // bnj caches BnjMainView *archive.View3 BnjLists []*archive.View3 BnjElecInfo *elecmdl.Info BnjWhiteMid map[int64]struct{} BnjIsGrey bool // contains filtered or unexported fields }
Service is view service
func (*Service) AddCoin ¶
func (s *Service) AddCoin(c context.Context, aid, mid, upID, avtype, multiply int64, ak string, selectLike int) (prompt, like bool, err error)
AddCoin add a coin
func (*Service) AddFav ¶
func (s *Service) AddFav(c context.Context, mid, vmid int64, fids []int64, aid int64, ak string) (prompt bool, err error)
AddFav add a favorite
func (*Service) AddShare ¶
func (s *Service) AddShare(c context.Context, aid, mid int64, ip string) (share int, isReport bool, upID int64, err error)
AddShare add a share
func (*Service) Bnj2019 ¶
func (s *Service) Bnj2019(c context.Context, mid int64, relateID int64) (bnj *view.BnjMain, err error)
Bnj2019 is
func (*Service) Dislike ¶
func (s *Service) Dislike(c context.Context, aid, mid int64, status int8) (upperID int64, err error)
Dislike add a dislike.
func (*Service) Follow ¶
func (s *Service) Follow(c context.Context, vmid, mid int64) (res *creative.PlayerFollow, err error)
Follow get auto follow switch from creative and acc.
func (*Service) Like ¶
func (s *Service) Like(c context.Context, aid, mid int64, status int8) (upperID int64, toast string, err error)
Like add a like.
func (*Service) LikeTriple ¶
func (s *Service) LikeTriple(c context.Context, aid, mid int64, ak string) (res *view.TripleRes, err error)
LikeTriple like & coin & fav
func (*Service) Paster ¶
func (s *Service) Paster(c context.Context, plat, adType int8, aid, typeID, buvid string) (p *resource.Paster, err error)
Paster get paster if nologin.
func (*Service) RelateInfoc ¶
func (s *Service) RelateInfoc(mid, aid int64, plat int, trackid, build, buvid, disid, ip, api, returnCode, userFeature, from string, rls []*view.Relate, now time.Time, isRec int8)
RelateInfoc Relate Infoc
func (*Service) UpperRecmd ¶
func (s *Service) UpperRecmd(c context.Context, plat int8, platform, mobiApp, device, buvid string, build int, mid, vimd int64) (res card.Handler, err error)
UpperRecmd is
func (*Service) View ¶
func (s *Service) View(c context.Context, mid, aid, movieID int64, plat int8, build, qn, fnver, fnval, forceHost, parentMode int, ak, mobiApp, device, buvid, cdnIP, network, adExtra, from string, now time.Time) (v *view.View, err error)
View all view data.
func (*Service) ViewInfoc ¶
func (s *Service) ViewInfoc(mid int64, plat int, trackid, aid, ip, api, build, buvid, disid, from string, now time.Time, err error, autoplay int, spmid, fromSpmid string)
ViewInfoc view infoc
func (*Service) ViewPage ¶
func (s *Service) ViewPage(c context.Context, mid, aid, movieID int64, plat int8, build int, ak, mobiApp, device, cdnIP string, nMovie bool, now time.Time) (v *view.View, err error)
ViewPage view page data.
func (*Service) VipPlayURL ¶
func (s *Service) VipPlayURL(c context.Context, aid, cid, mid int64) (res *view.VipPlayURL, err error)
VipPlayURL get playurl token.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.