lckt-server/model/system/article.go
2025-04-09 12:17:33 +08:00

18 lines
503 B
Go

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"
}