Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Info ¶
type Info struct {
Username string `json:"username" gorm:"column:username" validate:"required,max=100"` // 用户名称
Password string `json:"password" gorm:"column:password" validate:"required,max=60"` // 密码
Avatar string `json:"avatar" gorm:"column:avatar" validate:"omitempty,max=255"` // 头像
Phone string `json:"phone" gorm:"column:phone" validate:"required,max=11,phone"` // 电话号码
Email string `json:"email" gorm:"column:email" validate:"omitempty,max=255"` // 邮箱
Gender uint8 `json:"gender" gorm:"column:gender" validate:"omitempty,numeric"` // 性别:0-未知、1-男、2-女
}
Click to show internal directories.
Click to hide internal directories.