Documentation
¶
Index ¶
- type Service
- func (s *Service) AbServer(c context.Context, mid int64, platform int, channel, buvid string) (data model.AbServer, err error)
- func (s *Service) AddCoin(c context.Context, aid, mid, upID, multiply, avtype int64, ...) (like bool, err error)
- func (s *Service) AddShare(c context.Context, aid, mid int64, ua, refer, path, buvid, sid string) (shares int64, err error)
- func (s *Service) AppealTags(c context.Context) (rs json.RawMessage, err error)
- func (s *Service) ArcAppeal(c context.Context, mid int64, data map[string]string) (err error)
- func (s *Service) ArcRelation(c context.Context, mid, aid int64) (data *model.ReqUser, err error)
- func (s *Service) ArcReport(c context.Context, mid, aid, tp int64, reason, pics string) (err error)
- func (s *Service) ArcUGCPay(c context.Context, mid, aid int64) (data *model.AssetRelation, err error)
- func (s *Service) ArchiveStat(c context.Context, aid int64) (stat *model.Stat, err error)
- func (s *Service) ArticleList(c context.Context, rid, mid int64, sort, pn, ps int, aids []int64) (res []*model.Meta, err error)
- func (s *Service) ArticleUpList(c context.Context, mid int64) (res []*model.Info, err error)
- func (s *Service) Attentions(c context.Context, mid int64) (rs []int64, err error)
- func (s *Service) AuthorRecommend(c context.Context, aid int64) (res []*arcmdl.Arc, err error)
- func (s *Service) Bnj2019(c context.Context, mid int64) (data *model.Bnj2019, err error)
- func (s Service) Bnj2019Aids(c context.Context) []int64
- func (s *Service) BroadServers(c context.Context, platform string) (res *warden.ServerListReply, err error)
- func (s *Service) Card(c context.Context, mid, loginID int64, topPhoto, article bool) (rs *model.Card, err error)
- func (s *Service) Categories(c context.Context) (res *artmdl.Categories, err error)
- func (s *Service) Close()
- func (s *Service) CmtBox(c context.Context, id int64) (res *resmdl.Cmtbox, err error)
- func (s *Service) CoinExp(c context.Context, mid int64) (exp int64, err error)
- func (s *Service) CoinList(c context.Context, mid int64, pn, ps int) (list []*model.CoinArc, count int, err error)
- func (s *Service) Coins(c context.Context, mid, aid int64) (res *model.ArchiveUserCoins, err error)
- func (s *Service) Description(c context.Context, aid, page int64) (res string, err error)
- func (s *Service) Detail(c context.Context, aid, mid int64, cdnIP, ck string) (rs *model.Detail, err error)
- func (s *Service) DynamicRegion(c context.Context, rid int32, pn, ps int) (rs *dymdl.DynamicArcs3, err error)
- func (s *Service) DynamicRegionTag(c context.Context, tagID int64, rid int32, pn, ps int) (rs *dymdl.DynamicArcs3, err error)
- func (s *Service) DynamicRegionTotal(c context.Context) (map[string]int, error)
- func (s *Service) DynamicRegions(c context.Context) (rs map[int32][]*api.Arc, err error)
- func (s *Service) ElecShow(c context.Context, mid, aid, loginID int64) (rs *model.ElecShow, err error)
- func (s *Service) Feedback(c context.Context, feedParams *model.Feedback) (err error)
- func (s *Service) HasLike(c context.Context, aid, mid int64) (like int8, err error)
- func (s *Service) HelpDetail(c context.Context, fID, qTypeID string, keyFlag, pn, ps int) (resD []*model.HelpDeatil, resL []*model.HelpList, total int, err error)
- func (s *Service) HelpList(c context.Context, pTypeID string) (res []*model.HelpList, err error)
- func (s *Service) HelpSearch(c context.Context, pTypeID, keyWords string, keyFlag, pn, ps int) (res []*model.HelpDeatil, total int, err error)
- func (s *Service) IPZone(c context.Context) (res *model.Info, err error)
- func (s *Service) IndexIcon() (res *model.IndexIcon)
- func (s *Service) Kv(c context.Context) (res []*model.Kv, err error)
- func (s *Service) Like(c context.Context, aid, mid int64, like int8) (upperID int64, err error)
- func (s *Service) LikeTriple(c context.Context, aid, mid int64) (res *model.TripleRes, err error)
- func (s *Service) Nav(c context.Context, mid int64, cookie string) (resp *model.NavResp, err error)
- func (s *Service) NewCount(c context.Context, pubTime int64) (count int64, err error)
- func (s *Service) NewList(c context.Context, rid int32, tp int8, pn, ps int) (arcs []*api.Arc, count int, err error)
- func (s *Service) OnlineArchiveCount(c context.Context) (rs *model.Online)
- func (s *Service) OnlineList(c context.Context) (res []*model.OnlineArc, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Ranking(c context.Context, rid int16, rankType, day, arcType int) (res *model.RankData, err error)
- func (s *Service) RankingIndex(c context.Context, day int) (res []*model.IndexArchive, err error)
- func (s *Service) RankingRecommend(c context.Context, rid int16) (res []*model.IndexArchive, err error)
- func (s *Service) RankingRegion(c context.Context, rid int16, day, original int) (res []*model.RegionArchive, err error)
- func (s *Service) RankingTag(c context.Context, rid int16, tagID int64) (res []*model.TagArchive, err error)
- func (s *Service) RegionCustom(c context.Context) (res []*model.Custom, err error)
- func (s *Service) RelatedArcs(c context.Context, aid int64) (res []*arcmdl.Arc, err error)
- func (s *Service) SearchAll(c context.Context, mid int64, arg *model.SearchAllArg, buvid, ua, typ string) (data *model.Search, err error)
- func (s *Service) SearchByType(c context.Context, mid int64, arg *model.SearchTypeArg, buvid, ua string) (res *model.SearchTypeRes, err error)
- func (s *Service) SearchDefault(c context.Context, mid int64, fromSource, buvid, ua string) (data *model.SearchDefault, err error)
- func (s *Service) SearchEgg(c context.Context, eggID int64) (data *model.SearchEggRes, err error)
- func (s *Service) SearchRec(c context.Context, mid int64, pn, ps int, ...) (data *model.SearchRec, err error)
- func (s *Service) TagAids(c context.Context, tagID int64, pn, ps int) (total int, arcs []*arcmdl.Arc, err error)
- func (s *Service) TagDetail(c context.Context, tagID int64, ps int) (data *model.TagDetail, err error)
- func (s *Service) Timeline(c context.Context, mid int64) (data []*model.Timeline, err error)
- func (s *Service) UpMoreArts(c context.Context, aid int64) (res []*artmdl.Meta, err error)
- func (s *Service) UpRec(c context.Context, mid int64, arg *model.SearchUpRecArg, buvid string) (data *model.UpRecData, err error)
- func (s *Service) View(c context.Context, aid, cid, mid int64, cdnIP, ck string) (rs *model.View, err error)
- func (s *Service) WxHot(c context.Context, pn, ps int) (res []*model.WxArchive, count int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // infoc2 CheatInfoc *anticheat.AntiCheat BnjElecInfo *model.ElecShow // contains filtered or unexported fields }
Service service
func (*Service) AbServer ¶
func (s *Service) AbServer(c context.Context, mid int64, platform int, channel, buvid string) (data model.AbServer, err error)
AbServer get ab server info.
func (*Service) AddCoin ¶
func (s *Service) AddCoin(c context.Context, aid, mid, upID, multiply, avtype int64, business, ck, ua, refer string, now time.Time, selectLike int) (like bool, err error)
AddCoin add coin to archive.
func (*Service) AddShare ¶
func (s *Service) AddShare(c context.Context, aid, mid int64, ua, refer, path, buvid, sid string) (shares int64, err error)
AddShare share add count
func (*Service) AppealTags ¶
AppealTags get appeal tags
func (*Service) ArcRelation ¶
ArcRelation .
func (*Service) ArcUGCPay ¶
func (s *Service) ArcUGCPay(c context.Context, mid, aid int64) (data *model.AssetRelation, err error)
ArcUGCPay get arc ugc pay relation.
func (*Service) ArchiveStat ¶
ArchiveStat get archive stat data by aid.
func (*Service) ArticleList ¶
func (s *Service) ArticleList(c context.Context, rid, mid int64, sort, pn, ps int, aids []int64) (res []*model.Meta, err error)
ArticleList get article list.
func (*Service) ArticleUpList ¶
ArticleUpList get article up list.
func (*Service) Attentions ¶
Attentions get attention list.
func (*Service) AuthorRecommend ¶
AuthorRecommend get author recommend data
func (Service) Bnj2019Aids ¶
Bnj2019Aids get bnj aids.3
func (*Service) BroadServers ¶
func (s *Service) BroadServers(c context.Context, platform string) (res *warden.ServerListReply, err error)
BroadServers broadcast server list.
func (*Service) Card ¶
func (s *Service) Card(c context.Context, mid, loginID int64, topPhoto, article bool) (rs *model.Card, err error)
Card get card relation archive count data.
func (*Service) Categories ¶
Categories get article categories list
func (*Service) CoinList ¶
func (s *Service) CoinList(c context.Context, mid int64, pn, ps int) (list []*model.CoinArc, count int, err error)
CoinList get coin list.
func (*Service) Description ¶
Description get archive description by aid.
func (*Service) Detail ¶
func (s *Service) Detail(c context.Context, aid, mid int64, cdnIP, ck string) (rs *model.Detail, err error)
Detail get merge view card tag reply related.
func (*Service) DynamicRegion ¶
func (s *Service) DynamicRegion(c context.Context, rid int32, pn, ps int) (rs *dymdl.DynamicArcs3, err error)
DynamicRegion get dynamic region.
func (*Service) DynamicRegionTag ¶
func (s *Service) DynamicRegionTag(c context.Context, tagID int64, rid int32, pn, ps int) (rs *dymdl.DynamicArcs3, err error)
DynamicRegionTag get dynamic region tag.
func (*Service) DynamicRegionTotal ¶
DynamicRegionTotal get dynamic region total.
func (*Service) DynamicRegions ¶
DynamicRegions get dynamic regions.
func (*Service) ElecShow ¶
func (s *Service) ElecShow(c context.Context, mid, aid, loginID int64) (rs *model.ElecShow, err error)
ElecShow elec show.
func (*Service) HelpDetail ¶
func (s *Service) HelpDetail(c context.Context, fID, qTypeID string, keyFlag, pn, ps int) (resD []*model.HelpDeatil, resL []*model.HelpList, total int, err error)
HelpDetail get help detail
func (*Service) HelpSearch ¶
func (s *Service) HelpSearch(c context.Context, pTypeID, keyWords string, keyFlag, pn, ps int) (res []*model.HelpDeatil, total int, err error)
HelpSearch get help search
func (*Service) LikeTriple ¶
LikeTriple like & coin & fav
func (*Service) NewList ¶
func (s *Service) NewList(c context.Context, rid int32, tp int8, pn, ps int) (arcs []*api.Arc, count int, err error)
NewList get new list by region id.
func (*Service) OnlineArchiveCount ¶
OnlineArchiveCount Get Archive Count.
func (*Service) OnlineList ¶
OnlineList online archive list.
func (*Service) Ranking ¶
func (s *Service) Ranking(c context.Context, rid int16, rankType, day, arcType int) (res *model.RankData, err error)
Ranking get ranking data.
func (*Service) RankingIndex ¶
RankingIndex get index ranking data
func (*Service) RankingRecommend ¶
func (s *Service) RankingRecommend(c context.Context, rid int16) (res []*model.IndexArchive, err error)
RankingRecommend get rank recommend data.
func (*Service) RankingRegion ¶
func (s *Service) RankingRegion(c context.Context, rid int16, day, original int) (res []*model.RegionArchive, err error)
RankingRegion get region ranking data
func (*Service) RankingTag ¶
func (s *Service) RankingTag(c context.Context, rid int16, tagID int64) (res []*model.TagArchive, err error)
RankingTag get tag ranking data
func (*Service) RegionCustom ¶
RegionCustom region custom data
func (*Service) RelatedArcs ¶
RelatedArcs get related archives
func (*Service) SearchAll ¶
func (s *Service) SearchAll(c context.Context, mid int64, arg *model.SearchAllArg, buvid, ua, typ string) (data *model.Search, err error)
SearchAll search type all.
func (*Service) SearchByType ¶
func (s *Service) SearchByType(c context.Context, mid int64, arg *model.SearchTypeArg, buvid, ua string) (res *model.SearchTypeRes, err error)
SearchByType type video,bangumi,pgc,live,live_user,article,special,topic,bili_user,photo
func (*Service) SearchDefault ¶
func (s *Service) SearchDefault(c context.Context, mid int64, fromSource, buvid, ua string) (data *model.SearchDefault, err error)
SearchDefault get search default word.
func (*Service) SearchRec ¶
func (s *Service) SearchRec(c context.Context, mid int64, pn, ps int, keyword, fromSource, buvid, ua string) (data *model.SearchRec, err error)
SearchRec search recommend data.
func (*Service) TagAids ¶
func (s *Service) TagAids(c context.Context, tagID int64, pn, ps int) (total int, arcs []*arcmdl.Arc, err error)
TagAids gets avids by tagID from bigdata or backup cache, and updates the cache after getting bigdata's data.
func (*Service) TagDetail ¶
func (s *Service) TagDetail(c context.Context, tagID int64, ps int) (data *model.TagDetail, err error)
TagDetail group web tag data.
func (*Service) UpMoreArts ¶
UpMoreArts get up more articles
func (*Service) UpRec ¶
func (s *Service) UpRec(c context.Context, mid int64, arg *model.SearchUpRecArg, buvid string) (data *model.UpRecData, err error)
UpRec get up recommend