Documentation ¶
Index ¶
- type ArticleDomain
- func (d *ArticleDomain) CreateArticle(title string, desc string, content string, image string, state uint8, ...) error
- func (d *ArticleDomain) DeleteArticle(id uint32) error
- func (d *ArticleDomain) GetArticle(id uint32, state uint8) (*entity.ArticleEntity, error)
- func (d *ArticleDomain) GetArticleList(id uint32, state uint8, page, pageSize int) ([]*entity.ArticleEntity, int, error)
- func (d *ArticleDomain) UpdateArticle(artitleID uint32, title string, desc string, content string, image string, ...) error
- type TagDomain
- func (d *TagDomain) CountTag(name string, state uint8) (int, error)
- func (d *TagDomain) CreateTag(name string, state uint8, createdBy string) error
- func (d *TagDomain) DeleteTag(tagID uint32, force bool) error
- func (d *TagDomain) GetTagListWithCnt(name string, state uint8, page, pageSize int) ([]*entity.TagEntity, int, error)
- func (d *TagDomain) UpdateTag(id uint32, name string, state uint8, modifiedBy string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleDomain ¶
type ArticleDomain struct {
// contains filtered or unexported fields
}
func NewArticleDomain ¶
func NewArticleDomain(ctx context.Context, db *gorm.DB) *ArticleDomain
func (*ArticleDomain) CreateArticle ¶
func (*ArticleDomain) DeleteArticle ¶
func (d *ArticleDomain) DeleteArticle(id uint32) error
func (*ArticleDomain) GetArticle ¶
func (d *ArticleDomain) GetArticle(id uint32, state uint8) (*entity.ArticleEntity, error)
func (*ArticleDomain) GetArticleList ¶
func (d *ArticleDomain) GetArticleList(id uint32, state uint8, page, pageSize int) ([]*entity.ArticleEntity, int, error)
Click to show internal directories.
Click to hide internal directories.