修改用户管理编辑模式,增加手机号邮箱操作

This commit is contained in:
piexlmax
2022-02-08 17:15:25 +08:00
parent a9dec9fe4d
commit 8423c124d7
3 changed files with 98 additions and 91 deletions
+2
View File
@@ -18,4 +18,6 @@ type SysUser struct {
AuthorityId string `json:"authorityId" gorm:"default:888;comment:用户角色ID"` // 用户角色ID
Authority SysAuthority `json:"authority" gorm:"foreignKey:AuthorityId;references:AuthorityId;comment:用户角色"`
Authorities []SysAuthority `json:"authorities" gorm:"many2many:sys_user_authority;"`
Phone string `json:"phone" gorm:"comment:用户手机号"` // 用户角色ID
Email string `json:"email" gorm:"comment:用户邮箱"` // 用户邮箱
}