Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrArticleDuplicated = errors.New("article already exists") ErrArticleNotFound = errors.New("article not found") )
Functions ¶
func InitTables ¶
Types ¶
type ArticleDAO ¶
type ArticleDAO struct {
// contains filtered or unexported fields
}
func NewArticleDAO ¶
func NewArticleDAO(db *gorm.DB) *ArticleDAO
Click to show internal directories.
Click to hide internal directories.