补充字段 category_id
This commit is contained in:
@@ -24,6 +24,7 @@ type Game struct {
|
|||||||
Tags string `json:"tags"`
|
Tags string `json:"tags"`
|
||||||
UserId int `json:"user_id"`
|
UserId int `json:"user_id"`
|
||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
|
CategoryID int `json:"category_id"`
|
||||||
Image string `json:"image"`
|
Image string `json:"image"`
|
||||||
Images string `json:"images"`
|
Images string `json:"images"`
|
||||||
User User `json:"user" gorm:"foreignKey:UserId"`
|
User User `json:"user" gorm:"foreignKey:UserId"`
|
||||||
|
Reference in New Issue
Block a user