Documentation ¶
Index ¶
- type Article
- type Dao
- func (d *Dao) CountArticleListByTagID(id uint32, state uint8) (int, error)
- func (d *Dao) CountTag(name string, state uint8) (int, error)
- func (d *Dao) CreateArticle(param *Article) (*model.Article, error)
- func (d *Dao) CreateArticleTag(articleID, tagID uint32, createdBy string) error
- func (d *Dao) CreateTag(name string, state uint8, createdBy string) error
- func (d *Dao) DeleteArticle(id uint32) error
- func (d *Dao) DeleteArticleTag(articleID uint32) error
- func (d *Dao) DeleteTag(id uint32) error
- func (d *Dao) GetArticle(id uint32, state uint8) (model.Article, error)
- func (d *Dao) GetArticleListByTagID(id uint32, state uint8, page, pageSize int) ([]*model.ArticleRow, error)
- func (d *Dao) GetArticleTagByAID(articleID uint32) (model.ArticleTag, error)
- func (d *Dao) GetArticleTagListByAIDs(articleIDs []uint32) ([]*model.ArticleTag, error)
- func (d *Dao) GetArticleTagListByTID(tagID uint32) ([]*model.ArticleTag, error)
- func (d *Dao) GetAuth(appKey, appSecret string) (model.Auth, error)
- func (d *Dao) GetTag(id uint32, state uint8) (model.Tag, error)
- func (d *Dao) GetTagList(name string, state uint8, page, pageSize int) ([]*model.Tag, error)
- func (d *Dao) GetTagListByIDs(ids []uint32, state uint8) ([]*model.Tag, error)
- func (d *Dao) UpdateArticle(param *Article) error
- func (d *Dao) UpdateArticleTag(articleID, tagID uint32, modifiedBy string) 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 Article ¶
type Article struct { ID uint32 `json:"id"` TagID uint32 `json:"tag_id"` Title string `json:"title"` Desc string `json:"desc"` Content string `json:"content"` CoverImageUrl string `json:"cover_image_url"` CreatedBy string `json:"created_by"` ModifiedBy string `json:"modified_by"` State uint8 `json:"state"` }
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func (*Dao) CountArticleListByTagID ¶
func (*Dao) CreateArticleTag ¶
func (*Dao) DeleteArticle ¶
func (*Dao) DeleteArticleTag ¶
func (*Dao) GetArticleListByTagID ¶
func (*Dao) GetArticleTagByAID ¶
func (d *Dao) GetArticleTagByAID(articleID uint32) (model.ArticleTag, error)
func (*Dao) GetArticleTagListByAIDs ¶
func (d *Dao) GetArticleTagListByAIDs(articleIDs []uint32) ([]*model.ArticleTag, error)
func (*Dao) GetArticleTagListByTID ¶
func (d *Dao) GetArticleTagListByTID(tagID uint32) ([]*model.ArticleTag, error)
func (*Dao) GetTagList ¶
func (*Dao) GetTagListByIDs ¶
func (*Dao) UpdateArticle ¶
func (*Dao) UpdateArticleTag ¶
Click to show internal directories.
Click to hide internal directories.