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: 29 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 {
	// contains filtered or unexported fields
}

Service service.

func New

func New(c *conf.Config) (s *Service)

New new a service and return.

func (*Service) Add

func (s *Service) Add(c context.Context, aid, mid int64, name string, now time.Time) (tid int64, err error)

Add .

func (*Service) AddActivityTag

func (s *Service) AddActivityTag(c context.Context, name string, now time.Time) (err error)

AddActivityTag check activity tag if new add it

func (*Service) AddReport

func (s *Service) AddReport(c context.Context, aid, tid, rptMid int64, reason int8, now time.Time) (err error)

AddReport .

func (*Service) AddSub

func (s *Service) AddSub(c context.Context, mid int64, tids []int64, now time.Time) (err error)

AddSub .

func (*Service) ArcAdminBind

func (s *Service) ArcAdminBind(c context.Context, aid, mid int64, tNames, regionNames []string, now time.Time) (err error)

ArcAdminBind .

func (*Service) ArcTags

func (s *Service) ArcTags(c context.Context, aid, mid int64) (reTs []*model.Tag, err error)

ArcTags .

func (*Service) CancelSub

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

CancelSub .

func (*Service) ChangeSim

func (s *Service) ChangeSim(c context.Context, tid int64) (sis []*model.SimilarTag, err error)

ChangeSim .

func (*Service) ChanneList

func (s *Service) ChanneList(c context.Context, mid, tp int64, from int32) (res []*model.Channel, err error)

ChanneList get channel list by channel category id.

func (*Service) ChannelCategories

func (s *Service) ChannelCategories(c context.Context, arg *model.ArgChannelCategories) (res []*model.ChannelCategory, err error)

ChannelCategories channel category.

func (*Service) ChannelCategory

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

ChannelCategory channel category.

func (*Service) ChannelDetail

func (s *Service) ChannelDetail(c context.Context, arg *model.ReqChannelDetail) (res *model.ChannelDetail, err error)

ChannelDetail channel detail.

func (*Service) ChannelResources

func (s *Service) ChannelResources(c context.Context, arg *model.ArgChannelResource) (res *model.ChannelResource, err error)

ChannelResources channel resources.

func (*Service) ChannelRule

func (s *Service) ChannelRule(c context.Context, tid int64) (res *model.ChannelRuleClassifier, err error)

ChannelRule channel rule.

func (*Service) ChannelSquare

func (s *Service) ChannelSquare(c context.Context, arg *model.ReqChannelSquare) (res *model.ChannelSquare, err error)

ChannelSquare channel square.

func (*Service) CheckName

func (s *Service) CheckName(name string) (dst string, err error)

CheckName check tag name .

func (*Service) CheckTag

func (s *Service) CheckTag(c context.Context, mid int64, name string, now time.Time) (t *model.Tag, err error)

CheckTag .

func (*Service) Close

func (s *Service) Close()

Close .

func (*Service) CustomSubTags

func (s *Service) CustomSubTags(c context.Context, mid int64, order, tp, ps, pn int) (cst, sst []*model.TagInfo, total int, err error)

CustomSubTags custom sub tags.

func (*Service) Del

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

Del .

func (*Service) Detail

func (s *Service) Detail(c context.Context, tid, mid int64, pn, ps int) (detail *model.Detail, err error)

Detail .

func (*Service) DetailRankArc

func (s *Service) DetailRankArc(c context.Context, tid, prid int64, pn, ps int) (as []*api.Arc, count int, err error)

DetailRankArc .

func (*Service) DiscoveryChannel

func (s *Service) DiscoveryChannel(c context.Context, mid int64, from int32) (res []*model.Channel, err error)

DiscoveryChannel discovery channels list.

func (*Service) Hate

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

Hate user action Hate2 tag .

func (*Service) HotMap

func (s *Service) HotMap(c context.Context) (res map[int16][]int64, err error)

HotMap .

func (*Service) HotTags

func (s *Service) HotTags(c context.Context, mid, rid, hotType int64) (mhs []*model.HotTags, err error)

HotTags .

func (*Service) InfoByID

func (s *Service) InfoByID(c context.Context, mid, tid int64) (t *model.Tag, err error)

InfoByID .

func (*Service) InfoByName

func (s *Service) InfoByName(c context.Context, mid int64, name string) (t *model.Tag, err error)

InfoByName .

func (*Service) Like

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

Like user action like tag .

func (*Service) LogReport

func (s *Service) LogReport(c context.Context, aid, logID, rptMid int64, reason int8, now time.Time) (err error)

LogReport .

func (*Service) Logs

func (s *Service) Logs(c context.Context, aid, mid int64, pn, ps int) (atls []*model.ArcTagLog, err error)

Logs .

func (*Service) MinfoByIDs

func (s *Service) MinfoByIDs(c context.Context, mid int64, tids []int64) (ts []*model.Tag, err error)

MinfoByIDs .

func (*Service) MinfoByNames

func (s *Service) MinfoByNames(c context.Context, mid int64, names []string) (ts []*model.Tag, err error)

MinfoByNames .

func (*Service) MutiArcTags

func (s *Service) MutiArcTags(c context.Context, mid int64, oids []int64) (res map[int64][]*model.Tag, err error)

MutiArcTags muti archive tags.

func (*Service) NewArcs

func (s *Service) NewArcs(c context.Context, tid int64, ps, pn int) (as []*api.Arc, count int, err error)

NewArcs tid new arcs.

func (*Service) Ping

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

Ping Ping.

func (*Service) Prids

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

Prids .

func (*Service) RecommandChannel

func (s *Service) RecommandChannel(c context.Context, mid int64, from int32) (res []*model.Channel, err error)

RecommandChannel recommand channels list.

func (*Service) RecommandTag

func (s *Service) RecommandTag(c context.Context) (res map[int64]map[string][]*rpcModel.UploadTag, err error)

RecommandTag .

func (*Service) RegionNewArcs

func (s *Service) RegionNewArcs(c context.Context, rid int32, tid int64, tp int8, ps, pn int) (as []*api.Arc, count int, err error)

RegionNewArcs rid-tid newArcs.

func (*Service) ResAdminBind

func (s *Service) ResAdminBind(c context.Context, oid, mid int64, tNames []string, typ int8, now time.Time) (err error)

ResAdminBind .

func (*Service) ResChannelCheckBack

func (s *Service) ResChannelCheckBack(c context.Context, oids []int64, tp int32) (res map[int64]*model.ResChannelCheckBack, err error)

ResChannelCheckBack ResChannelCheckBack.

func (*Service) ResChannelInfos

func (s *Service) ResChannelInfos(c context.Context, arg *model.ReqChannelResourceInfos) (res map[int64]*model.ChannelInfo, err error)

ResChannelInfos resource channel infos.

func (*Service) ResTags

func (s *Service) ResTags(c context.Context, oids []int64, mid int64, typ int8) (tm map[int64][]*model.Tag, err error)

ResTags 资源下tag列表

func (*Service) SimilarTags

func (s *Service) SimilarTags(c context.Context, rid, tid int64) (sts []*model.SimilarTag, err error)

SimilarTags .

func (*Service) SubArcs

func (s *Service) SubArcs(c context.Context, mid, rmid int64) (as []*model.SubArcs, err error)

SubArcs get newest arcs of user subcribe

func (*Service) SubTags

func (s *Service) SubTags(c context.Context, mid, vmid int64, pn, ps, order int) (ts []*model.Tag, total int, err error)

SubTags .

func (*Service) TagGroup

func (s *Service) TagGroup(c context.Context) (rs []*rpcModel.Synonym, err error)

TagGroup .

func (*Service) TagTop

func (s *Service) TagTop(c context.Context, arg *model.ReqTagTop) (res *model.TagTop, err error)

TagTop web-interface tag top, include tag info, and similar tags.

func (*Service) TopicTags

func (s *Service) TopicTags(c context.Context, mid int64, names []string, now time.Time) (res []*model.Tag, err error)

TopicTags TopicTags.

func (*Service) UpArcBind

func (s *Service) UpArcBind(c context.Context, aid, mid int64, tNames, regionNames []string, now time.Time) (err error)

UpArcBind .

func (*Service) UpCustomSubChannels

func (s *Service) UpCustomSubChannels(c context.Context, mid int64, tids []int64, tp int) (err error)

UpCustomSubChannels update sorted channels.

func (*Service) UpCustomSubTags

func (s *Service) UpCustomSubTags(c context.Context, mid int64, tids []int64, tp int) (err error)

UpCustomSubTags update sorted tags.

func (*Service) UpResBind

func (s *Service) UpResBind(c context.Context, oid, mid int64, tNames []string, typ int8, now time.Time) (err error)

UpResBind .

Jump to

Keyboard shortcuts

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