Documentation
¶
Index ¶
- type Service
- func (s *Service) AccInfo(c context.Context, mid, vmid int64) (res *model.AccInfo, err error)
- func (s *Service) AccTags(c context.Context, mid int64) (res json.RawMessage, err error)
- func (s *Service) AddChannel(c context.Context, mid int64, name, intro string) (cid int64, err error)
- func (s *Service) AddChannelArc(c context.Context, mid, cid int64, aids []int64) (fakeAids []int64, err error)
- func (s *Service) AddMasterpiece(c context.Context, mid, aid int64, reason string) (err error)
- func (s *Service) AlbumIndex(c context.Context, mid int64, ps int) (data []*model.Album, err error)
- func (s *Service) AppIndex(c context.Context, arg *model.AppIndexArg) (data *model.AppIndex, err error)
- func (s *Service) AppPlayedGame(c context.Context, mid, vmid int64, platform string, pn, ps int) (data []*model.AppGame, count int, err error)
- func (s *Service) AppTopPhoto(c context.Context, mid, vmid int64, platform, device string) (imgURL string)
- func (s *Service) ArcSearch(c context.Context, mid int64, arg *model.SearchArg) (data *model.SearchRes, total int, err error)
- func (s *Service) Article(c context.Context, mid int64, pn, ps, sort int) (res *artmdl.UpArtMetas, err error)
- func (s *Service) BangumiConcern(c context.Context, mid, seasonID int64) (err error)
- func (s *Service) BangumiList(c context.Context, mid, vmid int64, pn, ps int) (data []*model.Bangumi, count int, err error)
- func (s *Service) BangumiUnConcern(c context.Context, mid, seasonID int64) (err error)
- func (s *Service) Blacklist(c context.Context)
- func (s *Service) CancelMasterpiece(c context.Context, mid, aid int64) (err error)
- func (s *Service) CancelTopDynamic(c context.Context, mid int64, now time.Time) (err error)
- func (s *Service) Channel(c context.Context, mid, cid int64) (channel *model.Channel, err error)
- func (s *Service) ChannelIndex(c context.Context, mid int64, isGuest bool) (channelDetails []*model.ChannelDetail, err error)
- func (s *Service) ChannelList(c context.Context, mid int64, isGuest bool) (channels []*model.Channel, err error)
- func (s *Service) ChannelVideos(c context.Context, mid, cid int64, pn, ps int, isGuest, order bool) (res *model.ChannelDetail, err error)
- func (s *Service) CheckChannelVideo(c context.Context, mid, cid int64) (err error)
- func (s *Service) ClearCache(c context.Context, msg string) (err error)
- func (s *Service) CoinVideo(c context.Context, mid, vmid int64) (list []*model.CoinArc, err error)
- func (s *Service) DelChannel(c context.Context, mid, cid int64) (err error)
- func (s *Service) DelChannelArc(c context.Context, mid, cid, aid int64) (err error)
- func (s *Service) DelTopArc(c context.Context, mid int64) (err error)
- func (s Service) DynamicList(c context.Context, arg *model.DyListArg) (dyTotal *model.DyTotal, err error)
- func (s *Service) EditChannel(c context.Context, mid, cid int64, name, intro string) (err error)
- func (s *Service) EditMasterpiece(c context.Context, mid, preAid, aid int64, reason string) (err error)
- func (s *Service) ExitRider(c context.Context, mid, upMid int64) (err error)
- func (s *Service) FavArchive(c context.Context, mid int64, arg *model.FavArcArg) (res *favmdl.SearchArchive, err error)
- func (s *Service) FavNav(c context.Context, mid int64, vmid int64) (res *model.FavNav, err error)
- func (s *Service) IndexOrderModify(c context.Context, mid int64, orderNum []string) (err error)
- func (s *Service) LastPlayGame(c context.Context, mid, vmid int64) (data []*model.Game, err error)
- func (s *Service) Masterpiece(c context.Context, mid, vmid int64) (res []*model.ArchiveReason, err error)
- func (s *Service) MyInfo(c context.Context, mid int64) (res *accmdl.ProfileStat, err error)
- func (s *Service) NavNum(c context.Context, mid, vmid int64) (res *model.NavNum)
- func (s *Service) Notice(c context.Context, mid int64) (res string, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) PrivacyBatchModify(c context.Context, mid int64, data map[string]int) (err error)
- func (s *Service) PrivacyModify(c context.Context, mid int64, field string, value int) (err error)
- func (s *Service) Relation(c context.Context, mid, vmid int64) (data *model.Relation)
- func (s *Service) RiderList(c context.Context, mid int64, pn, ps int) (res *assist.AssistUpsPager, err error)
- func (s *Service) SetAccTags(c context.Context, tags, ck string) (err error)
- func (s *Service) SetNotice(c context.Context, mid int64, notice string) (err error)
- func (s *Service) SetTopArc(c context.Context, mid, aid int64, reason string) (err error)
- func (s *Service) SetTopDynamic(c context.Context, mid, dynamicID int64) (err error)
- func (s *Service) SettingInfo(c context.Context, mid int64) (data *model.Setting, err error)
- func (s *Service) ShopInfo(c context.Context, mid int64) (data *model.ShopInfo, err error)
- func (s *Service) SortChannelArc(c context.Context, mid, cid, aid int64, orderNum int) (err error)
- func (s *Service) TagCancelSub(c context.Context, mid, tid int64) error
- func (s *Service) TagSub(c context.Context, mid, tid int64) error
- func (s *Service) TagSubList(c context.Context, mid, vmid int64, pn, ps int) (rs []*model.Tag, total int, err error)
- func (s *Service) ThemeActive(c context.Context, mid, themeID int64) (err error)
- func (s *Service) ThemeList(c context.Context, mid int64) (data []*model.ThemeDetail, err error)
- func (s *Service) TopArc(c context.Context, mid, vmid int64) (res *model.ArchiveReason, err error)
- func (s *Service) UpArcStat(c context.Context, mid int64) (data *model.UpArcStat, err error)
- func (s *Service) UpArcs(c context.Context, mid int64, pn, ps int32) (res *model.UpArc, err error)
- func (s *Service) UpArtStat(c context.Context, mid int64) (data *model.UpArtStat, err error)
- func (s *Service) UpStat(c context.Context, mid int64) (res *model.UpStat, err error)
- func (s *Service) WebIndex(c context.Context, mid, vmid int64, pn, ps int32) (data *model.WebIndex, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { BlacklistValue map[int64]struct{} // contains filtered or unexported fields }
Service service struct.
func (*Service) AddChannel ¶
func (s *Service) AddChannel(c context.Context, mid int64, name, intro string) (cid int64, err error)
AddChannel add channel.
func (*Service) AddChannelArc ¶
func (s *Service) AddChannelArc(c context.Context, mid, cid int64, aids []int64) (fakeAids []int64, err error)
AddChannelArc add channel archive.
func (*Service) AddMasterpiece ¶
AddMasterpiece add masterpiece.
func (*Service) AlbumIndex ¶
AlbumIndex get album index with mid.
func (*Service) AppIndex ¶
func (s *Service) AppIndex(c context.Context, arg *model.AppIndexArg) (data *model.AppIndex, err error)
AppIndex app index info.
func (*Service) AppPlayedGame ¶
func (s *Service) AppPlayedGame(c context.Context, mid, vmid int64, platform string, pn, ps int) (data []*model.AppGame, count int, err error)
AppPlayedGame get app played games.
func (*Service) AppTopPhoto ¶
func (s *Service) AppTopPhoto(c context.Context, mid, vmid int64, platform, device string) (imgURL string)
AppTopPhoto get app top photo.
func (*Service) ArcSearch ¶
func (s *Service) ArcSearch(c context.Context, mid int64, arg *model.SearchArg) (data *model.SearchRes, total int, err error)
ArcSearch get archive from search.
func (*Service) Article ¶
func (s *Service) Article(c context.Context, mid int64, pn, ps, sort int) (res *artmdl.UpArtMetas, err error)
Article get articles by upMid.
func (*Service) BangumiConcern ¶
BangumiConcern bangumi concern.
func (*Service) BangumiList ¶
func (s *Service) BangumiList(c context.Context, mid, vmid int64, pn, ps int) (data []*model.Bangumi, count int, err error)
BangumiList get bangumi list by mid.
func (*Service) BangumiUnConcern ¶
BangumiUnConcern bangumi unconcern.
func (*Service) CancelMasterpiece ¶
CancelMasterpiece delete masterpiece.
func (*Service) CancelTopDynamic ¶
CancelTopDynamic cancel top dynamic.
func (*Service) ChannelIndex ¶
func (s *Service) ChannelIndex(c context.Context, mid int64, isGuest bool) (channelDetails []*model.ChannelDetail, err error)
ChannelIndex get channel index info.
func (*Service) ChannelList ¶
func (s *Service) ChannelList(c context.Context, mid int64, isGuest bool) (channels []*model.Channel, err error)
ChannelList get channel list.
func (*Service) ChannelVideos ¶
func (s *Service) ChannelVideos(c context.Context, mid, cid int64, pn, ps int, isGuest, order bool) (res *model.ChannelDetail, err error)
ChannelVideos get channel and channel video info.
func (*Service) CheckChannelVideo ¶
CheckChannelVideo check useless channel video.
func (*Service) ClearCache ¶
ClearCache del match and object cache
func (*Service) DelChannel ¶
DelChannel del channel.
func (*Service) DelChannelArc ¶
DelChannelArc delete channel archive.
func (Service) DynamicList ¶
func (s Service) DynamicList(c context.Context, arg *model.DyListArg) (dyTotal *model.DyTotal, err error)
DynamicList get dynamic list.
func (*Service) EditChannel ¶
EditChannel edit channel.
func (*Service) EditMasterpiece ¶
func (s *Service) EditMasterpiece(c context.Context, mid, preAid, aid int64, reason string) (err error)
EditMasterpiece edit masterpiece.
func (*Service) FavArchive ¶
func (s *Service) FavArchive(c context.Context, mid int64, arg *model.FavArcArg) (res *favmdl.SearchArchive, err error)
FavArchive get favorite archive.
func (*Service) IndexOrderModify ¶
IndexOrderModify index order modify
func (*Service) LastPlayGame ¶
LastPlayGame get last play game by mid
func (*Service) Masterpiece ¶
func (s *Service) Masterpiece(c context.Context, mid, vmid int64) (res []*model.ArchiveReason, err error)
Masterpiece get masterpiece.
func (*Service) PrivacyBatchModify ¶
PrivacyBatchModify privacy batch modify.
func (*Service) PrivacyModify ¶
PrivacyModify privacy modify.
func (*Service) RiderList ¶
func (s *Service) RiderList(c context.Context, mid int64, pn, ps int) (res *assist.AssistUpsPager, err error)
RiderList get rider list by mid
func (*Service) SetAccTags ¶
SetAccTags set account tags.
func (*Service) SetTopDynamic ¶
SetTopDynamic set top dynamic.
func (*Service) SettingInfo ¶
SettingInfo get setting info.
func (*Service) SortChannelArc ¶
SortChannelArc sort channel archive.
func (*Service) TagCancelSub ¶
TagCancelSub cancel subscribe tag.
func (*Service) TagSubList ¶
func (s *Service) TagSubList(c context.Context, mid, vmid int64, pn, ps int) (rs []*model.Tag, total int, err error)
TagSubList get tag subscribe list by mid.
func (*Service) ThemeActive ¶
ThemeActive theme active.