Documentation ¶
Index ¶
- type TagRepo
- type TagService
- func (ts *TagService) GetFollowingTags(ctx context.Context, userID string) (resp []*schema.GetFollowingTagsResp, err error)
- func (ts *TagService) GetTagInfo(ctx context.Context, req *schema.GetTagInfoReq) (resp *schema.GetTagResp, err error)
- func (ts *TagService) GetTagSynonyms(ctx context.Context, req *schema.GetTagSynonymsReq) (resp []*schema.GetTagSynonymsResp, err error)
- func (ts *TagService) GetTagWithPage(ctx context.Context, req *schema.GetTagWithPageReq) (pageModel *pager.PageModel, err error)
- func (ts *TagService) RemoveTag(ctx context.Context, tagID string) (err error)
- func (ts *TagService) UpdateTag(ctx context.Context, req *schema.UpdateTagReq) (err error)
- func (ts *TagService) UpdateTagSynonym(ctx context.Context, req *schema.UpdateTagSynonymReq) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TagRepo ¶ added in v0.4.0
type TagRepo interface { RemoveTag(ctx context.Context, tagID string) (err error) UpdateTag(ctx context.Context, tag *entity.Tag) (err error) UpdateTagSynonym(ctx context.Context, tagSlugNameList []string, mainTagID int64, mainTagSlugName string) (err error) GetTagList(ctx context.Context, tag *entity.Tag) (tagList []*entity.Tag, err error) }
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
TagService user service
func NewTagService ¶
func NewTagService( tagRepo TagRepo, tagCommonService *tag_common.TagCommonService, revisionService *revision_common.RevisionService, followCommon activity_common.FollowRepo, siteInfoService *siteinfo_common.SiteInfoCommonService) *TagService
NewTagService new tag service
func (*TagService) GetFollowingTags ¶
func (ts *TagService) GetFollowingTags(ctx context.Context, userID string) ( resp []*schema.GetFollowingTagsResp, err error)
GetFollowingTags get following tags
func (*TagService) GetTagInfo ¶
func (ts *TagService) GetTagInfo(ctx context.Context, req *schema.GetTagInfoReq) (resp *schema.GetTagResp, err error)
GetTagInfo get tag one
func (*TagService) GetTagSynonyms ¶
func (ts *TagService) GetTagSynonyms(ctx context.Context, req *schema.GetTagSynonymsReq) ( resp []*schema.GetTagSynonymsResp, err error)
GetTagSynonyms get tag synonyms
func (*TagService) GetTagWithPage ¶
func (ts *TagService) GetTagWithPage(ctx context.Context, req *schema.GetTagWithPageReq) (pageModel *pager.PageModel, err error)
GetTagWithPage get tag list page
func (*TagService) RemoveTag ¶
func (ts *TagService) RemoveTag(ctx context.Context, tagID string) (err error)
RemoveTag delete tag
func (*TagService) UpdateTag ¶
func (ts *TagService) UpdateTag(ctx context.Context, req *schema.UpdateTagReq) (err error)
UpdateTag update tag
func (*TagService) UpdateTagSynonym ¶
func (ts *TagService) UpdateTagSynonym(ctx context.Context, req *schema.UpdateTagSynonymReq) (err error)
UpdateTagSynonym add tag synonym
Click to show internal directories.
Click to hide internal directories.