You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
949 B

  1. package request
  2. import uuid "github.com/satori/go.uuid"
  3. // User register structure
  4. type RegisterStruct struct {
  5. Username string `json:"userName"`
  6. Password string `json:"passWord"`
  7. NickName string `json:"nickName" gorm:"default:'QMPlusUser'"`
  8. HeaderImg string `json:"headerImg" gorm:"default:'http://www.henrongyi.top/avatar/lufu.jpg'"`
  9. AuthorityId string `json:"authorityId" gorm:"default:888"`
  10. }
  11. // User login structure
  12. type RegisterAndLoginStruct struct {
  13. Username string `json:"username"`
  14. Password string `json:"password"`
  15. Captcha string `json:"captcha"`
  16. CaptchaId string `json:"captchaId"`
  17. }
  18. // Modify password structure
  19. type ChangePasswordStruct struct {
  20. Username string `json:"username"`
  21. Password string `json:"password"`
  22. NewPassword string `json:"newPassword"`
  23. }
  24. // Modify user's auth structure
  25. type SetUserAuth struct {
  26. UUID uuid.UUID `json:"uuid"`
  27. AuthorityId string `json:"authorityId"`
  28. }