🎨 优化用户和分类相关接口,新增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

16
model/app/banner.go Normal file
View File

@@ -0,0 +1,16 @@
package app
import "git.echol.cn/loser/lckt/global"
type Banner struct {
global.GVA_MODEL
Title string `json:"title" gorm:"comment:标题"` // 标题
Link string `json:"link" gorm:"comment:链接"` // 链接
Img string `json:"img" gorm:"comment:图片"` // 图片
Status int `json:"status" gorm:"comment:状态"` // 状态 0:禁用 1:启用
}
// TableName Banner 表名
func (Banner) TableName() string {
return "lckt_banner"
}