Documentation ¶
Index ¶
- Constants
- func CreateUser(user *User) (userId uint, err error)
- func InitTables(db *gorm.DB)
- func IsEmailExisted(email string) (isExisted bool, err error)
- func IsPhoneExisted(phone string) (isExisted bool, err error)
- func IsUserNameExisted(name string) (isExisted bool, err error)
- func UserPasswordCheck(userId uint, password string) (bool, error)
- type User
- type UserInfo
Constants ¶
View Source
const ( IDTYPE_USERID = 1 IDTYPE_NAME = 2 IDTYPE_MAIL = 3 IDTYPE_PHONE = 4 )
用户标识类别
View Source
const ( GENDER_FEMALE = 0 GENDER_MALE = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.