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 Name string `gorm:"column:name;type:varchar(255);not null;unique" valid:"name"` //Email string `gorm:"column:email;type:varchar(255) not null;unique" valid:"email"` Password string `gorm:"column:password;type:varchar(255);not null" valid:"password"` }
func (*User) ComparePassword ¶
ComparePassword 检查密码是否匹配
Click to show internal directories.
Click to hide internal directories.