🎨 分类新增url字段

This commit is contained in:
2025-07-31 02:41:09 +08:00
parent da1ebd72f4
commit 9c51f0cbe4
2 changed files with 3 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ type Category struct {
ParentId *int `json:"parentId" form:"parentId" gorm:"column:parent_id;comment:父类别ID;"` //父ID
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:类别链接;"` //链接
}
// TableName 类别 Category自定义表名 categories