Documentation ¶
Index ¶
- type Service
- func (s *Service) Add(c context.Context, aid, mid int64, name string, now time.Time) (tid int64, err error)
- func (s *Service) AddActivityTag(c context.Context, name string, now time.Time) (err error)
- func (s *Service) AddReport(c context.Context, aid, tid, rptMid int64, reason int8, now time.Time) (err error)
- func (s *Service) AddSub(c context.Context, mid int64, tids []int64, now time.Time) (err error)
- func (s *Service) ArcAdminBind(c context.Context, aid, mid int64, tNames, regionNames []string, now time.Time) (err error)
- func (s *Service) ArcTags(c context.Context, aid, mid int64) (reTs []*model.Tag, err error)
- func (s *Service) CancelSub(c context.Context, tid, mid int64, now time.Time) (err error)
- func (s *Service) ChangeSim(c context.Context, tid int64) (sis []*model.SimilarTag, err error)
- func (s *Service) ChanneList(c context.Context, mid, tp int64, from int32) (res []*model.Channel, err error)
- func (s *Service) ChannelCategories(c context.Context, arg *model.ArgChannelCategories) (res []*model.ChannelCategory, err error)
- func (s *Service) ChannelCategory(c context.Context) (res []*model.ChannelCategory, err error)
- func (s *Service) ChannelDetail(c context.Context, arg *model.ReqChannelDetail) (res *model.ChannelDetail, err error)
- func (s *Service) ChannelResources(c context.Context, arg *model.ArgChannelResource) (res *model.ChannelResource, err error)
- func (s *Service) ChannelRule(c context.Context, tid int64) (res *model.ChannelRuleClassifier, err error)
- func (s *Service) ChannelSquare(c context.Context, arg *model.ReqChannelSquare) (res *model.ChannelSquare, err error)
- func (s *Service) CheckName(name string) (dst string, err error)
- func (s *Service) CheckTag(c context.Context, mid int64, name string, now time.Time) (t *model.Tag, err error)
- func (s *Service) Close()
- func (s *Service) CustomSubTags(c context.Context, mid int64, order, tp, ps, pn int) (cst, sst []*model.TagInfo, total int, err error)
- func (s *Service) Del(c context.Context, aid, mid, tid int64, now time.Time) (err error)
- func (s *Service) Detail(c context.Context, tid, mid int64, pn, ps int) (detail *model.Detail, err error)
- func (s *Service) DetailRankArc(c context.Context, tid, prid int64, pn, ps int) (as []*api.Arc, count int, err error)
- func (s *Service) DiscoveryChannel(c context.Context, mid int64, from int32) (res []*model.Channel, err error)
- func (s *Service) Hate(c context.Context, mid, aid, tid int64, now time.Time) (err error)
- func (s *Service) HotMap(c context.Context) (res map[int16][]int64, err error)
- func (s *Service) HotTags(c context.Context, mid, rid, hotType int64) (mhs []*model.HotTags, err error)
- func (s *Service) InfoByID(c context.Context, mid, tid int64) (t *model.Tag, err error)
- func (s *Service) InfoByName(c context.Context, mid int64, name string) (t *model.Tag, err error)
- func (s *Service) Like(c context.Context, mid, aid, tid int64, now time.Time) (err error)
- func (s *Service) LogReport(c context.Context, aid, logID, rptMid int64, reason int8, now time.Time) (err error)
- func (s *Service) Logs(c context.Context, aid, mid int64, pn, ps int) (atls []*model.ArcTagLog, err error)
- func (s *Service) MinfoByIDs(c context.Context, mid int64, tids []int64) (ts []*model.Tag, err error)
- func (s *Service) MinfoByNames(c context.Context, mid int64, names []string) (ts []*model.Tag, err error)
- func (s *Service) MutiArcTags(c context.Context, mid int64, oids []int64) (res map[int64][]*model.Tag, err error)
- func (s *Service) NewArcs(c context.Context, tid int64, ps, pn int) (as []*api.Arc, count int, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Prids(c context.Context) (res []int64, err error)
- func (s *Service) RecommandChannel(c context.Context, mid int64, from int32) (res []*model.Channel, err error)
- func (s *Service) RecommandTag(c context.Context) (res map[int64]map[string][]*rpcModel.UploadTag, err error)
- func (s *Service) RegionNewArcs(c context.Context, rid int32, tid int64, tp int8, ps, pn int) (as []*api.Arc, count int, err error)
- func (s *Service) ResAdminBind(c context.Context, oid, mid int64, tNames []string, typ int8, now time.Time) (err error)
- func (s *Service) ResChannelCheckBack(c context.Context, oids []int64, tp int32) (res map[int64]*model.ResChannelCheckBack, err error)
- func (s *Service) ResChannelInfos(c context.Context, arg *model.ReqChannelResourceInfos) (res map[int64]*model.ChannelInfo, err error)
- func (s *Service) ResTags(c context.Context, oids []int64, mid int64, typ int8) (tm map[int64][]*model.Tag, err error)
- func (s *Service) SimilarTags(c context.Context, rid, tid int64) (sts []*model.SimilarTag, err error)
- func (s *Service) SubArcs(c context.Context, mid, rmid int64) (as []*model.SubArcs, err error)
- func (s *Service) SubTags(c context.Context, mid, vmid int64, pn, ps, order int) (ts []*model.Tag, total int, err error)
- func (s *Service) TagGroup(c context.Context) (rs []*rpcModel.Synonym, err error)
- func (s *Service) TagTop(c context.Context, arg *model.ReqTagTop) (res *model.TagTop, err error)
- func (s *Service) TopicTags(c context.Context, mid int64, names []string, now time.Time) (res []*model.Tag, err error)
- func (s *Service) UpArcBind(c context.Context, aid, mid int64, tNames, regionNames []string, now time.Time) (err error)
- func (s *Service) UpCustomSubChannels(c context.Context, mid int64, tids []int64, tp int) (err error)
- func (s *Service) UpCustomSubTags(c context.Context, mid int64, tids []int64, tp int) (err error)
- func (s *Service) UpResBind(c context.Context, oid, mid int64, tNames []string, typ int8, now time.Time) (err error)
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 (*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 ¶
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) ArcAdminBind ¶
func (s *Service) ArcAdminBind(c context.Context, aid, mid int64, tNames, regionNames []string, now time.Time) (err error)
ArcAdminBind .
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 ¶
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) CheckTag ¶
func (s *Service) CheckTag(c context.Context, mid int64, name string, now time.Time) (t *model.Tag, err error)
CheckTag .
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) 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) HotTags ¶
func (s *Service) HotTags(c context.Context, mid, rid, hotType int64) (mhs []*model.HotTags, err error)
HotTags .
func (*Service) InfoByName ¶
InfoByName .
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) 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) 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) 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 ¶
UpCustomSubTags update sorted tags.