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: 49 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 {

	// infoc2
	CheatInfoc *anticheat.AntiCheat

	BnjElecInfo *model.ElecShow
	// contains filtered or unexported fields
}

Service service

func New

func New(c *conf.Config) *Service

New new

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

func (s *Service) AppealTags(c context.Context) (rs json.RawMessage, err error)

AppealTags get appeal tags

func (*Service) ArcAppeal

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

ArcAppeal add archive appeal.

func (*Service) ArcRelation

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

ArcRelation .

func (*Service) ArcReport

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

ArcReport add archive report

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

func (s *Service) ArchiveStat(c context.Context, aid int64) (stat *model.Stat, err error)

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

func (s *Service) ArticleUpList(c context.Context, mid int64) (res []*model.Info, err error)

ArticleUpList get article up list.

func (*Service) Attentions

func (s *Service) Attentions(c context.Context, mid int64) (rs []int64, err error)

Attentions get attention list.

func (*Service) AuthorRecommend

func (s *Service) AuthorRecommend(c context.Context, aid int64) (res []*arcmdl.Arc, err error)

AuthorRecommend get author recommend data

func (*Service) Bnj2019

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

Bnj2019 get bnj2019 data.

func (Service) Bnj2019Aids

func (s Service) Bnj2019Aids(c context.Context) []int64

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

func (s *Service) Categories(c context.Context) (res *artmdl.Categories, err error)

Categories get article categories list

func (*Service) Close

func (s *Service) Close()

Close close resource.

func (*Service) CmtBox

func (s *Service) CmtBox(c context.Context, id int64) (res *resmdl.Cmtbox, err error)

CmtBox get live dm box

func (*Service) CoinExp

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

CoinExp get coin exp today

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

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

Coins get archive User added coins.

func (*Service) Description

func (s *Service) Description(c context.Context, aid, page int64) (res string, err error)

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

func (s *Service) DynamicRegionTotal(c context.Context) (map[string]int, error)

DynamicRegionTotal get dynamic region total.

func (*Service) DynamicRegions

func (s *Service) DynamicRegions(c context.Context) (rs map[int32][]*api.Arc, err error)

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

func (s *Service) Feedback(c context.Context, feedParams *model.Feedback) (err error)

Feedback web player feedback.

func (*Service) HasLike

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

HasLike get if has like.

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

func (s *Service) HelpList(c context.Context, pTypeID string) (res []*model.HelpList, err error)

HelpList get help menu list

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

func (s *Service) IPZone(c context.Context) (res *model.Info, err error)

IPZone get ip zone info by ip

func (*Service) IndexIcon

func (s *Service) IndexIcon() (res *model.IndexIcon)

IndexIcon get index icons

func (*Service) Kv

func (s *Service) Kv(c context.Context) (res []*model.Kv, err error)

Kv get baidu kv

func (*Service) Like

func (s *Service) Like(c context.Context, aid, mid int64, like int8) (upperID int64, err error)

Like like archive.

func (*Service) LikeTriple

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

LikeTriple like & coin & fav

func (*Service) Nav

func (s *Service) Nav(c context.Context, mid int64, cookie string) (resp *model.NavResp, err error)

Nav api service

func (*Service) NewCount

func (s *Service) NewCount(c context.Context, pubTime int64) (count int64, err error)

NewCount get new publish article count

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

func (s *Service) OnlineArchiveCount(c context.Context) (rs *model.Online)

OnlineArchiveCount Get Archive Count.

func (*Service) OnlineList

func (s *Service) OnlineList(c context.Context) (res []*model.OnlineArc, err error)

OnlineList online archive list.

func (*Service) Ping

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

Ping check connection success.

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

func (s *Service) RankingIndex(c context.Context, day int) (res []*model.IndexArchive, err error)

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

func (s *Service) RegionCustom(c context.Context) (res []*model.Custom, err error)

RegionCustom region custom data

func (*Service) RelatedArcs

func (s *Service) RelatedArcs(c context.Context, aid int64) (res []*arcmdl.Arc, err error)

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

func (s *Service) SearchEgg(c context.Context, eggID int64) (data *model.SearchEggRes, err error)

SearchEgg get search egg by egg id.

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

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

Timeline get timeline.

func (*Service) UpMoreArts

func (s *Service) UpMoreArts(c context.Context, aid int64) (res []*artmdl.Meta, err error)

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

func (*Service) View

func (s *Service) View(c context.Context, aid, cid, mid int64, cdnIP, ck string) (rs *model.View, err error)

View get a view page by aid.

func (*Service) WxHot

func (s *Service) WxHot(c context.Context, pn, ps int) (res []*model.WxArchive, count int, err error)

WxHot get wx hot archives.

Jump to

Keyboard shortcuts

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