sys_user.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package request
  2. type SysUserInfoReq struct {
  3. SysUserId int `description:"id"`
  4. SysUserName string `description:"账号"`
  5. Password string `description:"密码"`
  6. RealName string `description:"姓名"`
  7. Phone string `description:"手机号"`
  8. AreaCode string `description:"区号"`
  9. SysDepartmentId int `description:"部门id"`
  10. Email string `description:"邮箱"`
  11. SysRoleId int `description:"角色id"`
  12. Province string `description:"省"`
  13. City string `description:"市"`
  14. IsEnabled bool `description:"是否启用"`
  15. }
  16. type EditReq struct {
  17. SysUserId int `description:"id"`
  18. SysUserName string `description:"账号"`
  19. SysRoleId int `description:"角色id"`
  20. }
  21. type ResetPasswordReq struct {
  22. SysUserId int `description:"用户id"`
  23. Password string `description:"密码"`
  24. RePassword string `description:"重复密码"`
  25. }
  26. type ResetMyPasswordReq struct {
  27. OriginPassword string `description:"旧密码"`
  28. Password string `description:"新密码"`
  29. RePassword string `description:"重复密码"`
  30. }
  31. type SysUserEditEnabledReq struct {
  32. SysUserId int `description:"用户id"`
  33. IsEnabled bool `description:"是否启用"`
  34. }
  35. type MoveToDepartmentReq struct {
  36. SysUserId int `description:"用户id"`
  37. SysDepartmentId int `description:"部门id"`
  38. }
  39. type UserLoginReq struct {
  40. LoginType string `description:"登录方式 sso:密码登录 password:微信登录"`
  41. Code string `description:"授权code"`
  42. UserName string `description:"账号"`
  43. Password string `description:"密码"`
  44. ReqTime string `description:"登录时间戳"`
  45. }