更新 Category 结构

This commit is contained in:
2024-11-04 01:47:14 +08:00
parent 7f4de71495
commit bc7887de44

View File

@@ -126,18 +126,18 @@ type Article struct {
}
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
ID int `json:"id"`
Title string `json:"title"`
Keyword string `json:"keyword"`
ParentID int `json:"parent_id"`
Status int `json:"status"`
Content string `json:"content"`
Sort int `json:"sort"`
Image string `json:"image"`
ImageNum int `json:"image_num"`
ArticleNum int `json:"article_num"`
CreateTime time.Time `json:"create_time"`
UpdateTime time.Time `json:"update_time"`
}
// TableName 方法用于自定义表名