Documentation
¶
Index ¶
Constants ¶
View Source
const (
PassWordCost = 12 // 密码加密难度
)
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type User ¶
type User struct { UserID uint `gorm:"primarykey"` UserName string `gorm:"unique"` NickName string PasswordDigest string }
func (*User) CheckUserExist ¶
func (user *User) CheckUserExist(req *service.UserRequest) bool
func (*User) ShowUserInfo ¶
func (user *User) ShowUserInfo(req *service.UserRequest) (err error)
Click to show internal directories.
Click to hide internal directories.