123456789101112131415161718192021222324252627282930313233 |
- package request
- import uuid "github.com/satori/go.uuid"
- // User register structure
- 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"`
- }
- // User login structure
- type Login struct {
- Username string `json:"username"`
- Password string `json:"password"`
- Captcha string `json:"captcha"`
- CaptchaId string `json:"captchaId"`
- }
- // Modify password structure
- type ChangePasswordStruct struct {
- Username string `json:"username"`
- Password string `json:"password"`
- NewPassword string `json:"newPassword"`
- }
- // Modify user's auth structure
- type SetUserAuth struct {
- UUID uuid.UUID `json:"uuid"`
- AuthorityId string `json:"authorityId"`
- }
|