🎨 优化用户和分类相关接口,新增banner接口

This commit is contained in:
2025-06-23 17:04:44 +08:00
parent a5ae680f94
commit cf0f60d221
29 changed files with 695 additions and 299 deletions

View File

@@ -5,13 +5,15 @@ import (
"git.echol.cn/loser/lckt/global"
)
// 类别 结构体 Category
// Category 分类
type Category struct {
global.GVA_MODEL
Name *string `json:"name" form:"name" gorm:"column:name;comment:类别名称;" binding:"required"` //名称
Order *int `json:"order" form:"order" gorm:"column:order;comment:排序字段;"` //排序
Active *bool `json:"active" form:"active" gorm:"column:active;comment:是否激活;"` //状态
ParentId *int `json:"parentId" form:"parentId" gorm:"column:parent_id;comment:父类别ID;"` //父ID
Name *string `json:"name" form:"name" gorm:"column:name;comment:类别名称;" binding:"required"` //名称
Order *int `json:"order" form:"order" gorm:"column:order;comment:排序字段;"` //排序
Active *bool `json:"active" form:"active" gorm:"column:active;comment:是否激活;"` //状态
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:是否首页显示;"` //是否首页显示
}
// TableName 类别 Category自定义表名 categories