Documentation ¶
Index ¶
- func CreateArticle(db *gorm.DB, article *model.Article) (*model.Article, error)
- func DeleteArticleByID(db *gorm.DB, id int64) error
- func GetAllArticles(db *gorm.DB) ([]*model.Article, error)
- func GetArticleByID(db *gorm.DB, id int64) (*model.Article, error)
- func GetDB(host string, port string, user string, pass string, database string) *gorm.DB
- func UpdateArticle(db *gorm.DB, article *model.Article) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateArticle ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.