service

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: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoverURL

func CoverURL(uri string) (cover string)

CoverURL convert cover url to full url.

Types

type Public

type Public struct {

	// type cache
	TypesCache       map[string][]*arcmdl.Type
	TopTypesCache    []*arcmdl.Type
	TypeMapCache     map[int16]*arcmdl.Type
	CTypesCache      map[string][]*arcmdl.Type
	AllMusics        map[int64]*mMdl.Music
	DescFmtsCache    map[int64]map[int8]map[int8]*arcmdl.DescFormat
	DescFmtsArrCache []*arcmdl.DescFormat
	// cache
	ActVideoAllCache []*actmdl.Activity
	TopActCache      []*actmdl.Activity
	ActMapCache      map[int64]*actmdl.Activity
	StaffTitlesCache []*tagMdl.StaffTitle

	AppWhiteMidsByGroups map[int64]map[int64]int64
	// contains filtered or unexported fields
}

Public struct

func New

func New(c *conf.Config, rpcdaos *RPCDaos) *Public

New get service

func (*Public) BatchArchives

func (p *Public) BatchArchives(c context.Context, mid int64, aids []int64, ip string) (avm map[int64]*arcmdl.ArcVideo, err error)

BatchArchives batch get archive info.

func (*Public) BgmBindList

func (p *Public) BgmBindList(c context.Context, aid, cid, mType int64, cache bool) (resOk []*arcinter.ViewBGM, err error)

BgmBindList fn

func (*Public) FillPayInfo

func (p *Public) FillPayInfo(c context.Context, a *arcmdl.Archive, ugcPayCfg *conf.UgcPay, ip string) (pay *arcmdl.UgcPayInfo)

FillPayInfo fill pay

func (*Public) StaffList

func (p *Public) StaffList(c context.Context, aid int64, cache bool) (res []*arcinter.Staff, err error)

StaffList fn

func (*Public) TaskPub

func (p *Public) TaskPub(mid int64, from, count int) (err error)

TaskPub fn pub task finished msg.

type RPCDaos

type RPCDaos struct {
	Arc *archive.Dao
	Acc *account.Dao
	Art *article.Dao
	Up  *up.Dao
	Sub *subtitle.Dao
}

RPCDaos struct

func NewRPCDaos

func NewRPCDaos(c *conf.Config) *RPCDaos

NewRPCDaos get all

Jump to

Keyboard shortcuts

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