Documentation ¶
Index ¶
- type ITagService
- type TagService
- func (s *TagService) AdminCreateTag(ctx context.Context, tag domain.Tag) error
- func (s *TagService) AdminGetTags(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Tag, int64, error)
- func (s *TagService) DeleteTag(ctx context.Context, id string) error
- func (s *TagService) GetSelectTags(ctx context.Context) ([]domain.Tag, error)
- func (s *TagService) GetTagByRoute(ctx context.Context, route string) (domain.Tag, error)
- func (s *TagService) GetTags(ctx context.Context) ([]domain.TagWithCount, error)
- func (s *TagService) ModifyTagEnabled(ctx context.Context, id string, enabled bool) error
- func (s *TagService) QueryTagsPage(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Tag, int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITagService ¶
type ITagService interface { GetTags(ctx context.Context) ([]domain.TagWithCount, error) GetTagByRoute(ctx context.Context, route string) (domain.Tag, error) AdminGetTags(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Tag, int64, error) AdminCreateTag(ctx context.Context, tag domain.Tag) error ModifyTagEnabled(ctx context.Context, id string, enabled bool) error DeleteTag(ctx context.Context, id string) error GetSelectTags(ctx context.Context) ([]domain.Tag, error) }
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
func NewTagService ¶
func NewTagService(repo repository.ITagRepository, countStatsService service.ICountStatsService) *TagService
func (*TagService) AdminCreateTag ¶
func (*TagService) AdminGetTags ¶
func (*TagService) GetSelectTags ¶
func (*TagService) GetTagByRoute ¶
func (*TagService) GetTags ¶
func (s *TagService) GetTags(ctx context.Context) ([]domain.TagWithCount, error)
func (*TagService) ModifyTagEnabled ¶
Click to show internal directories.
Click to hide internal directories.