✨ init project
This commit is contained in:
17
model/system/article.go
Normal file
17
model/system/article.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user