repository

package
v0.0.0-...-61f55d0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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) CreateTag

func (r *TagRepository) CreateTag(ctx context.Context, tag domain.Tag) (string, error)

func (*TagRepository) DeleteTagById

func (r *TagRepository) DeleteTagById(ctx context.Context, id string) error

func (*TagRepository) GetSelectTags

func (r *TagRepository) GetSelectTags(ctx context.Context) ([]domain.Tag, error)

func (*TagRepository) GetTagById

func (r *TagRepository) GetTagById(ctx context.Context, id string) (t domain.Tag, err error)

func (*TagRepository) GetTagByRoute

func (r *TagRepository) GetTagByRoute(ctx context.Context, route string) (domain.Tag, error)

func (*TagRepository) GetTags

func (r *TagRepository) GetTags(ctx context.Context) ([]domain.Tag, error)

func (*TagRepository) ModifyTagEnabled

func (r *TagRepository) ModifyTagEnabled(ctx context.Context, id string, enabled bool) error

func (*TagRepository) QueryTagsPage

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

func (*TagRepository) RecoverTag

func (r *TagRepository) RecoverTag(ctx context.Context, tag domain.Tag) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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