This commit is contained in:
2024-11-27 20:26:18 +08:00
parent a015fca246
commit bcfde1999c
2 changed files with 216 additions and 49 deletions

View File

@@ -109,6 +109,26 @@ func (User) TableName() string {
return "web_member"
}
type Work struct {
ID int `json:"id" gorm:"primaryKey"`
Title string `json:"title"`
Orientation string `json:"orientation"`
Device string `json:"device"`
Era string `json:"era"`
Tags string `json:"tags"`
UserId int `json:"user_id"`
Content string `json:"content"`
Image string `json:"image"`
Images string `json:"images"`
User User `json:"user" gorm:"foreignKey:UserId"`
CreateTime time.Time `json:"create_time"`
UpdateTime time.Time `json:"update_time"`
}
func (Work) TableName() string {
return "web_article"
}
type Game struct {
ID int `json:"id" gorm:"primaryKey"`
Title string `json:"title"`