view

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: 73 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 {

	// 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 New

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

New new archive

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

func (s *Service) BnjItem(c context.Context, aid, mid int64) (item *view.BnjItem, err error)

BnjItem is

func (*Service) BnjList

func (s *Service) BnjList(c context.Context, mid int64) (list *view.BnjList, err error)

BnjList is

func (*Service) CheckAccess

func (s *Service) CheckAccess(mid int64) bool

CheckAccess check

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

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

Ping is dao ping.

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

func (s *Service) Shot(c context.Context, aid, cid int64) (shot *view.Videoshot, err error)

Shot shot service

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.

Jump to

Keyboard shortcuts

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