优化 model json 格式化注释

This commit is contained in:
2025-12-15 14:48:30 +08:00
parent 05fba68b3e
commit 0207720943
22 changed files with 167 additions and 167 deletions

View File

@@ -13,7 +13,7 @@ type LogsLogin struct {
GrantType GrantType `json:"grant_type" gorm:"column:grant_type"` // 授权类型
PasswordType PasswordType `json:"password_type" gorm:"column:password_type"` // 密码模式子授权类型
Success bool `json:"success" gorm:"column:success"` // 登录是否成功
UserID *int32 `json:"user_id" gorm:"column:user_id"` // 用户ID
UserID *int32 `json:"user_id,omitempty" gorm:"column:user_id"` // 用户ID
Time time.Time `json:"time" gorm:"column:time"` // 登录时间
User *User `json:"user,omitempty" gorm:"foreignKey:UserID"`