Documentation ¶
Index ¶
- type Service
- func (s *Service) AddBgmFeedBack(c context.Context, name, musicians, platform string, mid int64) (err error)
- func (s *Service) BgmExt(c context.Context, mid, sid int64) (ret *mMdl.BgmExt, err error)
- func (s *Service) BgmList(c context.Context, tid int) (ret []*mMdl.Music)
- func (s *Service) BgmSearch(c context.Context, kw string, mid int64, pn, ps int) (res *sMdl.BgmSearchRes)
- func (s *Service) BgmView(c context.Context, sid int64) (ret *mMdl.Music)
- func (s *Service) Cooperate(c context.Context, id, mid int64) (res *mMdl.Cooperate)
- func (s *Service) CooperatePre(c context.Context, mid int64, platStr string, build int) (cooperates []*mMdl.Cooperate)
- func (s *Service) ExtArcsWithSameBgm(c context.Context, sid int64) (res []*api.Arc, hot int, err error)
- func (s *Service) ExtSidHotMapAndSort(c context.Context, ExtMscs []*mMdl.Music, extSidMap map[int]int64) (res []*mMdl.Music, err error)
- func (s *Service) Material(c context.Context, id int64, tp int8, mid int64) (res interface{})
- func (s *Service) MaterialPre(c context.Context, mid int64, platStr string, build int) (res map[string]interface{})
- func (s *Service) PreByFrom(c context.Context, from int) (types []*mMdl.Category)
- func (s *Service) UperOtherBgmsFromRecom(c context.Context, upmid, sid int64) (res []*mMdl.Music, extSidMap map[int]int64)
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 (*Service) AddBgmFeedBack ¶
func (s *Service) AddBgmFeedBack(c context.Context, name, musicians, platform string, mid int64) (err error)
AddBgmFeedBack send to log service
func (*Service) BgmSearch ¶
func (s *Service) BgmSearch(c context.Context, kw string, mid int64, pn, ps int) (res *sMdl.BgmSearchRes)
BgmSearch 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) MaterialPre ¶
func (s *Service) MaterialPre(c context.Context, mid int64, platStr string, build int) (res map[string]interface{})
MaterialPre fn
Click to show internal directories.
Click to hide internal directories.