Documentation ¶
Index ¶
- type Dao
- func (d *Dao) CountArticle(title string, state uint8) (int, error)
- func (d *Dao) CountTag(name string, state uint8) (int, error)
- func (d *Dao) CreateArticle(title, desc, content, coverImageUrl string, state uint8, createdBy string) error
- func (d *Dao) CreateTag(name string, state 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, state uint8, page, pageSize int) ([]*model.Article, error)
- func (d *Dao) GetAuth(appKey, appSecret string) (model.Auth, error)
- func (d *Dao) GetTagList(name string, state uint8, page, pageSize int) ([]*model.Tag, error)
- func (d *Dao) UpdateArticle(id uint32, title, desc, content, coverImgUrl string, state uint8, ...) error
- func (d *Dao) 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 Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func (*Dao) CreateArticle ¶
func (*Dao) DeleteArticle ¶
func (*Dao) GetArticleList ¶
func (*Dao) GetTagList ¶
func (*Dao) UpdateArticle ¶
Click to show internal directories.
Click to hide internal directories.