Documentation ¶
Index ¶
- type Dao
- func (d *Dao) CountArticle(title string, status uint8, tagId uint32) (int, error)
- func (d *Dao) CountTag(name string, status uint8) (int, error)
- func (d *Dao) CreateTag(name string, status uint8, createdBy string) error
- func (d *Dao) DeleteArticle(id uint32) error
- func (d *Dao) DeleteTag(id uint32) error
- func (d *Dao) GetArticle(id uint32) (*model.Article, error)
- func (d *Dao) GetArticleList(title string, status uint8, tagId uint32, page, pageSize int) ([]*model.Article, error)
- func (d *Dao) GetTag(id uint32) (*model.Tag, error)
- func (d *Dao) GetTagList(name string, status uint8, page, pageSize int) ([]*model.Tag, error)
- func (d *Dao) NewArticle(a *model.Article) error
- func (d *Dao) UpdateArticle(id uint32, updateMap map[string]any) error
- func (d *Dao) UpdateTag(id uint32, updateMap map[string]any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func (*Dao) CountArticle ¶
func (*Dao) DeleteArticle ¶
func (*Dao) GetArticleList ¶
func (*Dao) GetTagList ¶
Click to show internal directories.
Click to hide internal directories.