service

package
v0.0.0-...-77539bd Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 (s *TagService) AdminCreateTag(ctx context.Context, tag domain.Tag) error

func (*TagService) AdminGetTags

func (s *TagService) AdminGetTags(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Tag, int64, error)

func (*TagService) DeleteTag

func (s *TagService) DeleteTag(ctx context.Context, id string) error

func (*TagService) GetSelectTags

func (s *TagService) GetSelectTags(ctx context.Context) ([]domain.Tag, error)

func (*TagService) GetTagByRoute

func (s *TagService) GetTagByRoute(ctx context.Context, route string) (domain.Tag, error)

func (*TagService) GetTags

func (s *TagService) GetTags(ctx context.Context) ([]domain.TagWithCount, error)

func (*TagService) ModifyTagEnabled

func (s *TagService) ModifyTagEnabled(ctx context.Context, id string, enabled bool) error

func (*TagService) QueryTagsPage

func (s *TagService) QueryTagsPage(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Tag, int64, error)

Jump to

Keyboard shortcuts

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