tag

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagService

type TagService struct {
	// contains filtered or unexported fields
}

TagService user service

func NewTagService

func NewTagService(
	tagRepo tagcommonser.TagRepo,
	tagCommonService *tagcommonser.TagCommonService,
	revisionService *revision_common.RevisionService,
	followCommon activity_common.FollowRepo,
	siteInfoService siteinfo_common.SiteInfoCommonService,
	activityQueueService activity_queue.ActivityQueueService,
) *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) GetTagsBySlugName added in v1.0.5

func (ts *TagService) GetTagsBySlugName(ctx context.Context, tagNames []string) ([]*schema.TagItem, error)

func (*TagService) RecoverTag added in v1.2.0

func (ts *TagService) RecoverTag(ctx context.Context, req *schema.RecoverTagReq) (err error)

RecoverTag recover tag

func (*TagService) RemoveTag

func (ts *TagService) RemoveTag(ctx context.Context, req *schema.RemoveTagReq) (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

Jump to

Keyboard shortcuts

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