games
This commit is contained in:
@@ -109,6 +109,26 @@ func (User) TableName() string {
|
||||
return "web_member"
|
||||
}
|
||||
|
||||
type Game 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 (Game) TableName() string {
|
||||
return "web_article"
|
||||
}
|
||||
|
||||
type Article struct {
|
||||
ID int `json:"id" db:"id" gorm:"primaryKey"`
|
||||
Title string `json:"title" db:"title"`
|
||||
|
Reference in New Issue
Block a user