system_user.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package v1
  2. import (
  3. "property-applete-gateway/param/base"
  4. "property-applete-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. }
  15. type UserAddRequest struct {
  16. base.Header
  17. UserAddBody
  18. }
  19. type UserAddResponse struct {
  20. base.Result
  21. Data v1.UserAddReply `json:"data"`
  22. }
  23. type UserUpdateBody struct {
  24. UserName string `form:"user_name" json:"user_name"`
  25. Password string `form:"password" json:"password"`
  26. Email string `form:"email" json:"email"`
  27. Phone string `form:"phone" json:"phone"`
  28. GroupId int64 `form:"group_id" json:"group_id"`
  29. Id int64 `form:"id"`
  30. DepartmentId int64 `form:"department_id" json:"department_id"`
  31. RealName string `form:"real_name" json:"real_name"`
  32. }
  33. type UserUpdateRequest struct {
  34. base.Header
  35. UserUpdateBody
  36. }
  37. type UserUpdateResponse struct {
  38. base.Result
  39. }
  40. type UserDelQuery struct {
  41. Id int64 `form:"id"`
  42. }
  43. type UserDelRequest struct {
  44. base.Header
  45. UserDelQuery
  46. }
  47. type UserDelResponse struct {
  48. base.Result
  49. }
  50. type UserListQuery struct {
  51. Page int64 `form:"page"`
  52. PageSize int64 `form:"page_size" json:"page_size"`
  53. UserName string `form:"user_name" json:"user_name"`
  54. Phone string `form:"phone"`
  55. GroupId int64 `form:"group_id" json:"group_id"`
  56. }
  57. type UserListRequest struct {
  58. base.Header
  59. UserListQuery
  60. }
  61. type UserListResponse struct {
  62. base.Result
  63. Data v1.UserListReply `json:"data"`
  64. }