Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { model.BaseModel Email string `json:"email" gorm:"column:email;default:null"` Phone string `json:"phone" gorm:"column:phone" validate:"gt=10"` Nickname string `json:"nickname" gorm:"column:nickname"` Birthday string `json:"birthday" gorm:"column:birthday;default:null"` Avatar string `json:"avatar" gorm:"column:avatar"` Gender string `json:"gender" gorm:"column:gender;default:'male'"` Level int `json:"level" gorm:"column:level;default:1"` Password string `json:"-" gorm:"column:password;default:null" validate:"gt=5"` Bio string `json:"bio" gorm:"column:bio;default:null"` }
Click to show internal directories.
Click to hide internal directories.