优化素材中心

This commit is contained in:
xh
2025-09-16 19:40:48 +08:00
parent 60ad9b096e
commit 2736e277bb
27 changed files with 414 additions and 354 deletions

View File

@@ -8,10 +8,10 @@ import (
// UserProtocol 用户协议实体
type UserProtocol struct {
Id int `gorm:"primarykey;comment:''"` //
Title string `gorm:"comment:'标题'"` // 标题
Content string `gorm:"comment:'协议内容'"` // 协议内容
Sort core.NullFloat `gorm:"comment:'排序'"` // 排序
Id int `gorm:"primarykey;comment:''"` //
Title string `gorm:"comment:'标题'"` // 标题
Content string `gorm:"comment:'协议内容'"` // 协议内容
// Sort core.NullFloat `gorm:"comment:'排序'"` // 排序
IsDelete soft_delete.DeletedAt `gorm:"not null;default:0;softDelete:flag,DeletedAtField:DeleteTime;comment:'是否删除: 0=否, 1=是'"`
CreateTime core.NullTime `gorm:"autoCreateTime;comment:'创建时间'"` // 创建时间
UpdateTime core.NullTime `gorm:"autoUpdateTime;comment:'更新时间'"` // 更新时间