This commit is contained in:
songzhibin97
2022-03-16 16:05:34 +08:00
parent 52809a01d8
commit bee9f61aa9
3 changed files with 51 additions and 21 deletions
+12
View File
@@ -1,5 +1,7 @@
package request
import model "github.com/flipped-aurora/gin-vue-admin/server/model/system"
// User register structure
type Register struct {
Username string `json:"userName"`
@@ -35,3 +37,13 @@ type SetUserAuthorities struct {
ID uint
AuthorityIds []string `json:"authorityIds"` // 角色ID
}
type ChangeUserInfo struct {
ID uint `gorm:"primarykey"` // 主键ID
NickName string `json:"nickName" gorm:"default:系统用户;comment:用户昵称"` // 用户昵称
Phone string `json:"phone" gorm:"comment:用户手机号"` // 用户角色ID
AuthorityIds []string `json:"authorityIds" gorm:"-"` // 角色ID
Email string `json:"email" gorm:"comment:用户邮箱"` // 用户邮箱
HeaderImg string `json:"headerImg" gorm:"default:https://qmplusimg.henrongyi.top/gva_header.jpg;comment:用户头像"` // 用户头像
Authorities []model.SysAuthority `json:"-" gorm:"many2many:sys_user_authority;"`
}