Documentation ¶
Index ¶
- type ITagRepository
- type TagRepository
- func (r *TagRepository) CreateTag(ctx context.Context, tag domain.Tag) (string, error)
- func (r *TagRepository) DeleteTagById(ctx context.Context, id string) error
- func (r *TagRepository) GetSelectTags(ctx context.Context) ([]domain.Tag, error)
- func (r *TagRepository) GetTagById(ctx context.Context, id string) (t domain.Tag, err error)
- func (r *TagRepository) GetTagByRoute(ctx context.Context, route string) (domain.Tag, error)
- func (r *TagRepository) GetTags(ctx context.Context) ([]domain.Tag, error)
- func (r *TagRepository) ModifyTagEnabled(ctx context.Context, id string, enabled bool) error
- func (r *TagRepository) QueryTagsPage(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Tag, int64, error)
- func (r *TagRepository) RecoverTag(ctx context.Context, tag domain.Tag) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITagRepository ¶
type ITagRepository interface { GetTags(ctx context.Context) ([]domain.Tag, error) GetTagByRoute(ctx context.Context, route string) (domain.Tag, error) QueryTagsPage(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Tag, int64, error) CreateTag(ctx context.Context, tag domain.Tag) (string, error) ModifyTagEnabled(ctx context.Context, id string, enabled bool) error GetTagById(ctx context.Context, id string) (domain.Tag, error) DeleteTagById(ctx context.Context, id string) error RecoverTag(ctx context.Context, tag domain.Tag) error GetSelectTags(ctx context.Context) ([]domain.Tag, error) }
type TagRepository ¶
type TagRepository struct {
// contains filtered or unexported fields
}
func NewTagRepository ¶
func NewTagRepository(dao dao.ITagDao) *TagRepository
func (*TagRepository) DeleteTagById ¶
func (r *TagRepository) DeleteTagById(ctx context.Context, id string) error
func (*TagRepository) GetSelectTags ¶
func (*TagRepository) GetTagById ¶
func (*TagRepository) GetTagByRoute ¶
func (*TagRepository) ModifyTagEnabled ¶
func (*TagRepository) QueryTagsPage ¶
func (*TagRepository) RecoverTag ¶
Click to show internal directories.
Click to hide internal directories.