mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-05 16:56:22 +00:00
⚡ update environment mode handling, refactor user registration logic, and add username/email existence checks
This commit is contained in:
@ -13,8 +13,7 @@ type User struct {
|
||||
Email string `gorm:"uniqueIndex"`
|
||||
Gender string
|
||||
Role string `gorm:"default:'user'"`
|
||||
|
||||
Password string // 密码,存储加密后的值
|
||||
Password string // 密码,存储加密后的值
|
||||
}
|
||||
|
||||
func (user *User) ToDto() *dto.UserDto {
|
||||
|
Reference in New Issue
Block a user