From abe1a0822fb4f485c3b56f121c5a16066029c7f2 Mon Sep 17 00:00:00 2001 From: satori Date: Tue, 24 Dec 2024 19:19:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=AD=97=E6=AE=B5=20category?= =?UTF-8?q?=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/game.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/game.go b/api/game.go index c53393e..a374d02 100644 --- a/api/game.go +++ b/api/game.go @@ -24,6 +24,7 @@ type Game struct { Tags string `json:"tags"` UserId int `json:"user_id"` Content string `json:"content"` + CategoryID int `json:"category_id"` Image string `json:"image"` Images string `json:"images"` User User `json:"user" gorm:"foreignKey:UserId"`