12345678910111213141516171819202122232425262728293031323334353637 |
- package request
- type Register struct {
- Username string `json:"userName"`
- Password string `json:"passWord"`
- NickName string `json:"nickName" gorm:"default:'QMPlusUser'"`
- HeaderImg string `json:"headerImg" gorm:"default:'http://www.henrongyi.top/avatar/lufu.jpg'"`
- AuthorityId string `json:"authorityId" gorm:"default:888"`
- AuthorityIds []string `json:"authorityIds"`
- }
- type Login struct {
- Username string `json:"username"`
- Password string `json:"password"`
- Captcha string `json:"captcha"`
- CaptchaId string `json:"captchaId"`
- }
- type ChangePasswordStruct struct {
- Username string `json:"username"`
- Password string `json:"password"`
- NewPassword string `json:"newPassword"`
- }
- type SetUserAuth struct {
- AuthorityId string `json:"authorityId"`
- }
- type SetUserAuthorities struct {
- ID uint
- AuthorityIds []string `json:"authorityIds"`
- }
|