user info

This commit is contained in:
2023-08-13 01:27:10 +08:00
parent 447b59a65a
commit 0575d14494
5 changed files with 50 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ type Image struct {
UserID int `json:"user_id"` // 用户ID
ModelID int `json:"model_id"` // 模型ID
Preview string `json:"preview" gorm:"-"` // 实时预览 base64
User User `json:"user" gorm:"-"` // 用户
CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`
UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"`
}