init project

This commit is contained in:
2025-04-09 12:17:33 +08:00
parent 6840d5d5e3
commit f6622a4e98
392 changed files with 55744 additions and 3 deletions

17
model/system/article.go Normal file
View File

@@ -0,0 +1,17 @@
package system
import "git.echol.cn/loser/lckt/global"
type Article struct {
global.GVA_MODEL
Title string `json:"title" gorm:"comment:标题"`
Content string `json:"content" gorm:"comment:内容"`
Desc string `json:"desc" gorm:"comment:简述"`
Price float64 `json:"price" gorm:"comment:价格"`
ClassId int `json:"classId" gorm:"comment:分类ID"`
CoverImg string `json:"coverImg" gorm:"comment:封面图片"`
}
func (a *Article) TableName() string {
return "article"
}