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: 41 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 {
	BlacklistValue map[int64]struct{}
	// contains filtered or unexported fields
}

Service service struct.

func New

func New(c *conf.Config) *Service

New new service.

func (*Service) AccInfo

func (s *Service) AccInfo(c context.Context, mid, vmid int64) (res *model.AccInfo, err error)

AccInfo web acc info.

func (*Service) AccTags

func (s *Service) AccTags(c context.Context, mid int64) (res json.RawMessage, err error)

AccTags get account tags.

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

func (s *Service) AddMasterpiece(c context.Context, mid, aid int64, reason string) (err error)

AddMasterpiece add masterpiece.

func (*Service) AlbumIndex

func (s *Service) AlbumIndex(c context.Context, mid int64, ps int) (data []*model.Album, err error)

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

func (s *Service) BangumiConcern(c context.Context, mid, seasonID int64) (err error)

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

func (s *Service) BangumiUnConcern(c context.Context, mid, seasonID int64) (err error)

BangumiUnConcern bangumi unconcern.

func (*Service) Blacklist

func (s *Service) Blacklist(c context.Context)

Blacklist space blacklist

func (*Service) CancelMasterpiece

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

CancelMasterpiece delete masterpiece.

func (*Service) CancelTopDynamic

func (s *Service) CancelTopDynamic(c context.Context, mid int64, now time.Time) (err error)

CancelTopDynamic cancel top dynamic.

func (*Service) Channel

func (s *Service) Channel(c context.Context, mid, cid int64) (channel *model.Channel, err error)

Channel get channel info.

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

func (s *Service) CheckChannelVideo(c context.Context, mid, cid int64) (err error)

CheckChannelVideo check useless channel video.

func (*Service) ClearCache

func (s *Service) ClearCache(c context.Context, msg string) (err error)

ClearCache del match and object cache

func (*Service) CoinVideo

func (s *Service) CoinVideo(c context.Context, mid, vmid int64) (list []*model.CoinArc, err error)

CoinVideo get coin archives

func (*Service) DelChannel

func (s *Service) DelChannel(c context.Context, mid, cid int64) (err error)

DelChannel del channel.

func (*Service) DelChannelArc

func (s *Service) DelChannelArc(c context.Context, mid, cid, aid int64) (err error)

DelChannelArc delete channel archive.

func (*Service) DelTopArc

func (s *Service) DelTopArc(c context.Context, mid int64) (err error)

DelTopArc delete top 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

func (s *Service) EditChannel(c context.Context, mid, cid int64, name, intro string) (err error)

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

func (s *Service) ExitRider(c context.Context, mid, upMid int64) (err error)

ExitRider del rider with mid and upMid

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

func (s *Service) FavNav(c context.Context, mid int64, vmid int64) (res *model.FavNav, err error)

FavNav get fav info.

func (*Service) IndexOrderModify

func (s *Service) IndexOrderModify(c context.Context, mid int64, orderNum []string) (err error)

IndexOrderModify index order modify

func (*Service) LastPlayGame

func (s *Service) LastPlayGame(c context.Context, mid, vmid int64) (data []*model.Game, err error)

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

func (s *Service) MyInfo(c context.Context, mid int64) (res *accmdl.ProfileStat, err error)

MyInfo get my info.

func (*Service) NavNum

func (s *Service) NavNum(c context.Context, mid, vmid int64) (res *model.NavNum)

NavNum get space nav num by mid.

func (*Service) Notice

func (s *Service) Notice(c context.Context, mid int64) (res string, err error)

Notice get notice.

func (*Service) Ping

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

Ping ping service

func (*Service) PrivacyBatchModify

func (s *Service) PrivacyBatchModify(c context.Context, mid int64, data map[string]int) (err error)

PrivacyBatchModify privacy batch modify.

func (*Service) PrivacyModify

func (s *Service) PrivacyModify(c context.Context, mid int64, field string, value int) (err error)

PrivacyModify privacy modify.

func (*Service) Relation

func (s *Service) Relation(c context.Context, mid, vmid int64) (data *model.Relation)

Relation .

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

func (s *Service) SetAccTags(c context.Context, tags, ck string) (err error)

SetAccTags set account tags.

func (*Service) SetNotice

func (s *Service) SetNotice(c context.Context, mid int64, notice string) (err error)

SetNotice set notice.

func (*Service) SetTopArc

func (s *Service) SetTopArc(c context.Context, mid, aid int64, reason string) (err error)

SetTopArc set top archive.

func (*Service) SetTopDynamic

func (s *Service) SetTopDynamic(c context.Context, mid, dynamicID int64) (err error)

SetTopDynamic set top dynamic.

func (*Service) SettingInfo

func (s *Service) SettingInfo(c context.Context, mid int64) (data *model.Setting, err error)

SettingInfo get setting info.

func (*Service) ShopInfo

func (s *Service) ShopInfo(c context.Context, mid int64) (data *model.ShopInfo, err error)

ShopInfo get shop info.

func (*Service) SortChannelArc

func (s *Service) SortChannelArc(c context.Context, mid, cid, aid int64, orderNum int) (err error)

SortChannelArc sort channel archive.

func (*Service) TagCancelSub

func (s *Service) TagCancelSub(c context.Context, mid, tid int64) error

TagCancelSub cancel subscribe tag.

func (*Service) TagSub

func (s *Service) TagSub(c context.Context, mid, tid int64) error

TagSub 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

func (s *Service) ThemeActive(c context.Context, mid, themeID int64) (err error)

ThemeActive theme active.

func (*Service) ThemeList

func (s *Service) ThemeList(c context.Context, mid int64) (data []*model.ThemeDetail, err error)

ThemeList get theme list.

func (*Service) TopArc

func (s *Service) TopArc(c context.Context, mid, vmid int64) (res *model.ArchiveReason, err error)

TopArc get top archive.

func (*Service) UpArcStat

func (s *Service) UpArcStat(c context.Context, mid int64) (data *model.UpArcStat, err error)

UpArcStat get up all article stat.

func (*Service) UpArcs

func (s *Service) UpArcs(c context.Context, mid int64, pn, ps int32) (res *model.UpArc, err error)

UpArcs get upload archive .

func (*Service) UpArtStat

func (s *Service) UpArtStat(c context.Context, mid int64) (data *model.UpArtStat, err error)

UpArtStat get up all article stat.

func (*Service) UpStat

func (s *Service) UpStat(c context.Context, mid int64) (res *model.UpStat, err error)

UpStat get up stat.

func (*Service) WebIndex

func (s *Service) WebIndex(c context.Context, mid, vmid int64, pn, ps int32) (data *model.WebIndex, err error)

WebIndex web index.

Jump to

Keyboard shortcuts

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