支持分类查询 category
This commit is contained in:
@@ -125,6 +125,21 @@ type Article struct {
|
||||
UpdateTime time.Time `json:"update_time" db:"update_time"`
|
||||
}
|
||||
|
||||
type Category struct {
|
||||
ID int
|
||||
Title string
|
||||
Keyword string
|
||||
ParentID int
|
||||
CreateTime time.Time
|
||||
UpdateTime time.Time
|
||||
Status int
|
||||
Content string
|
||||
Sort int
|
||||
Image string
|
||||
ImageNum int
|
||||
ArticleNum int
|
||||
}
|
||||
|
||||
// 输入配置
|
||||
type ConfigMysql struct {
|
||||
Host string
|
||||
@@ -133,6 +148,7 @@ type ConfigMysql struct {
|
||||
UserName string
|
||||
Password string
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Mysql ConfigMysql
|
||||
}
|
||||
|
Reference in New Issue
Block a user