Documentation ¶
Index ¶
- type Dao
- func (d *Dao) CreateArticle(title, description, content, author, categoryName, tagName string, ...) error
- func (d *Dao) CreateCategory(name string) error
- func (d *Dao) CreateTag(name string) error
- func (d *Dao) CreateUser(username, email, password string) error
- func (d *Dao) DeleteArticle(id uint) (int64, error)
- func (d *Dao) DeleteCategory(id uint) (int64, error)
- func (d *Dao) DeleteTag(id uint) (int64, error)
- func (d *Dao) DeleteUser(id uint) (int64, error)
- func (d *Dao) GetArticleById(id uint) (model.Article, error)
- func (d *Dao) GetArticlesList() ([]model.Article, error)
- func (d *Dao) GetCategoriesList() ([]model.Category, error)
- func (d *Dao) GetCategoryById(id uint) (model.Category, error)
- func (d *Dao) GetTagById(id uint) (model.Tag, error)
- func (d *Dao) GetTagsList() ([]model.Tag, error)
- func (d *Dao) GetUserByEmail(email, password string) (model.User, error)
- func (d *Dao) GetUserByUid(id uint) (model.User, error)
- func (d *Dao) GetUserList(pageOffset, pageSize int) ([]model.User, error)
- func (d *Dao) UpdateArticle(id uint, title, description, content, author, categoryName, tagName string, ...) (int64, error)
- func (d *Dao) UpdateCategory(id uint, name string) (int64, error)
- func (d *Dao) UpdateTag(id uint, name string) (int64, error)
- func (d *Dao) UpdateUser(id uint, username, email, password string) (int64, 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) CreateCategory ¶
func (*Dao) CreateUser ¶
func (*Dao) GetUserByEmail ¶
func (*Dao) UpdateArticle ¶
Click to show internal directories.
Click to hide internal directories.