system_user.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package v1
  2. import (
  3. "property-system-gateway/param/base"
  4. "property-system-gateway/pb/v1"
  5. )
  6. type UserAddBody struct {
  7. UserName string `form:"user_name" json:"user_name"`
  8. Password string `form:"password" json:"password"`
  9. Email string `form:"email" json:"email"`
  10. Phone string `form:"phone" json:"phone"`
  11. GroupId int64 `form:"group_id" json:"group_id"`
  12. DepartmentId int64 `form:"department_id" json:"department_id"`
  13. RealName string `form:"real_name" json:"real_name"`
  14. // 1 仅用户小区后台 2 仅用于员工小程序 3 二者皆可
  15. BasePermission int32 `form:"base_permission" json:"base_permission"`
  16. Gender int32 `form:"gender" json:"gender"`
  17. }
  18. type UserAddRequest struct {
  19. base.Header
  20. UserAddBody
  21. }
  22. type UserAddResponse struct {
  23. base.Result
  24. Data v1.UserAddReply `json:"data"`
  25. }
  26. type UserUpdateBody struct {
  27. UserName string `form:"user_name" json:"user_name"`
  28. Password string `form:"password" json:"password"`
  29. Email string `form:"email" json:"email"`
  30. Phone string `form:"phone" json:"phone"`
  31. GroupId int64 `form:"group_id" json:"group_id"`
  32. Id int64 `form:"id"`
  33. DepartmentId int64 `form:"department_id" json:"department_id"`
  34. RealName string `form:"real_name" json:"real_name"`
  35. // 1 仅用户小区后台 2 仅用于员工小程序 3 二者皆可
  36. BasePermission int32 `form:"base_permission" json:"base_permission"`
  37. Gender int32 `form:"gender" json:"gender"`
  38. }
  39. type UserUpdateRequest struct {
  40. base.Header
  41. UserUpdateBody
  42. }
  43. type UserUpdateResponse struct {
  44. base.Result
  45. }
  46. type UserDelQuery struct {
  47. Id int64 `form:"id"`
  48. }
  49. type UserDelRequest struct {
  50. base.Header
  51. UserDelQuery
  52. }
  53. type UserDelResponse struct {
  54. base.Result
  55. }
  56. type UserListQuery struct {
  57. Page int64 `form:"page"`
  58. PageSize int64 `form:"page_size" json:"page_size"`
  59. UserName string `form:"user_name" json:"user_name"`
  60. Phone string `form:"phone"`
  61. GroupId int64 `form:"group_id" json:"group_id"`
  62. Exclude string `form:"exclude"`
  63. }
  64. type UserListRequest struct {
  65. base.Header
  66. UserListQuery
  67. }
  68. type UserListResponse struct {
  69. base.Result
  70. Data v1.UserListReply `json:"data"`
  71. }