music

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: 20 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 {
	LatestBgm            *mMdl.Music
	MscWithTypes         map[int][]*mMdl.Music
	AllMsc               map[int64]*mMdl.Music
	Types                []*mMdl.Category
	Subtitles            []*mMdl.Subtitle
	Fonts                []*mMdl.Font
	Filters              []*mMdl.Filter
	FilterWithCategory   []*mMdl.FilterCategory
	VstickerWithCategory []*mMdl.VstickerCategory
	Hotwords             []*mMdl.Hotword
	Stickers             []*mMdl.Sticker
	Intros               []*mMdl.Intro
	Vstickers            []*mMdl.VSticker
	Transitions          []*mMdl.Transition

	Themes     []*mMdl.Theme
	Cooperates []*mMdl.Cooperate
	// contains filtered or unexported fields
}

Service struct.

func New

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

New get service.

func (*Service) AddBgmFeedBack

func (s *Service) AddBgmFeedBack(c context.Context, name, musicians, platform string, mid int64) (err error)

AddBgmFeedBack send to log service

func (*Service) BgmExt

func (s *Service) BgmExt(c context.Context, mid, sid int64) (ret *mMdl.BgmExt, err error)

BgmExt fn

func (*Service) BgmList

func (s *Service) BgmList(c context.Context, tid int) (ret []*mMdl.Music)

BgmList fn

func (*Service) BgmSearch

func (s *Service) BgmSearch(c context.Context, kw string, mid int64, pn, ps int) (res *sMdl.BgmSearchRes)

BgmSearch fn

func (*Service) BgmView

func (s *Service) BgmView(c context.Context, sid int64) (ret *mMdl.Music)

BgmView fn

func (*Service) Cooperate

func (s *Service) Cooperate(c context.Context, id, mid int64) (res *mMdl.Cooperate)

Cooperate fn

func (*Service) CooperatePre

func (s *Service) CooperatePre(c context.Context, mid int64, platStr string, build int) (cooperates []*mMdl.Cooperate)

CooperatePre fn

func (*Service) ExtArcsWithSameBgm

func (s *Service) ExtArcsWithSameBgm(c context.Context, sid int64) (res []*api.Arc, hot int, err error)

ExtArcsWithSameBgm fn

func (*Service) ExtSidHotMapAndSort

func (s *Service) ExtSidHotMapAndSort(c context.Context, ExtMscs []*mMdl.Music, extSidMap map[int]int64) (res []*mMdl.Music, err error)

ExtSidHotMapAndSort fn, sorry ...

func (*Service) Material

func (s *Service) Material(c context.Context, id int64, tp int8, mid int64) (res interface{})

Material fn

func (*Service) MaterialPre

func (s *Service) MaterialPre(c context.Context, mid int64, platStr string, build int) (res map[string]interface{})

MaterialPre fn

func (*Service) PreByFrom

func (s *Service) PreByFrom(c context.Context, from int) (types []*mMdl.Category)

PreByFrom fn

func (*Service) UperOtherBgmsFromRecom

func (s *Service) UperOtherBgmsFromRecom(c context.Context, upmid, sid int64) (res []*mMdl.Music, extSidMap map[int]int64)

UperOtherBgmsFromRecom fn, 最多三个同一个Up主的bgms

Jump to

Keyboard shortcuts

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