Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Model UserName string `gorm:"not null;default:'';comment:'用户名'"` Password string `gorm:"not null;default:'';comment:'密码'"` Avatar string `gorm:"not null;default:'';comment:'头像'"` Email string `gorm:"not null;default:'';comment:'手机号'"` Mobile string `gorm:"not null;default:'';comment:'手机号'"` Sex int `gorm:"not null;default:0;comment:'性别:1=》男;2=》女;0=》未知'"` Status int `gorm:"not null;default:0;comment:'登录状态:0=》初始;1=》允许登录;2=》禁止登录'"` }
func (User) UserCreate ¶
Click to show internal directories.
Click to hide internal directories.