🎨 分类新增文章分类字段,优化查询接口

This commit is contained in:
2025-09-06 21:46:57 +08:00
parent 45a95be1d8
commit 90bd42d488
4 changed files with 27 additions and 3 deletions

View File

@@ -15,6 +15,8 @@ type Category struct {
Icon *string `json:"icon" form:"icon" gorm:"column:icon;comment:类别图标;"` //图标
IndexTrue *bool `json:"index" form:"index" gorm:"column:index;comment:是否首页显示;"` //是否首页显示
Url *string `json:"url" form:"url" gorm:"column:url;comment:类别链接;"` //链接
// 是否文章分类
IsArticle *int `json:"isArticle" form:"isArticle" gorm:"column:is_article;default:0;comment:是否文章分类;"` //是否文章分类
}
// TableName 类别 Category自定义表名 categories