system.go 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package v1
  2. import (
  3. "property-company-gateway/param/base"
  4. "property-company-gateway/pb/v1"
  5. )
  6. type SystemUserAddBody 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. Enable bool `form:"enable" json:"enable"`
  12. GardenId int64 `form:"garden_id" json:"garden_id"`
  13. GardenName string `form:"garden_name" json:"garden_name"`
  14. }
  15. type SystemUserAddRequest struct {
  16. base.Header
  17. SystemUserAddBody
  18. }
  19. type SystemUserAddResponse struct {
  20. base.Result
  21. Data v1.UserAddReply `json:"data"`
  22. }
  23. type SystemUserUpdateBody 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. Enable bool `form:"enable" json:"enable"`
  29. GardenId int64 `form:"garden_id" json:"garden_id"`
  30. GardenName string `form:"garden_name" json:"garden_name"`
  31. Id int64 `form:"id" json:"id"`
  32. }
  33. type SystemUserUpdateRequest struct {
  34. base.Header
  35. SystemUserUpdateBody
  36. }
  37. type SystemUserUpdateResponse struct {
  38. base.Result
  39. }
  40. type SystemUserListQuery struct {
  41. Page int64 `form:"page"`
  42. PageSize int64 `form:"page_size" json:"page_size"`
  43. GardenId int64 `form:"garden_id" json:"garden_id"`
  44. GardenName string `form:"garden_name" json:"garden_name"`
  45. UserName string `form:"user_name" json:"user_name"`
  46. }
  47. type SystemUserListRequest struct {
  48. base.Header
  49. SystemUserListQuery
  50. }
  51. type SystemUserListResponse struct {
  52. base.Result
  53. Data v1.UserListReply `json:"data"`
  54. }
  55. type SystemUserDelQuery struct {
  56. Id int64 `form:"id"`
  57. }
  58. type SystemUserDelRequest struct {
  59. base.Header
  60. SystemUserDelQuery
  61. }
  62. type SystemUserDelResponse struct {
  63. base.Result
  64. }
  65. type GardenSetMchBody struct {
  66. MchId string `form:"mch_id" json:"mch_id"`
  67. GardenId int64 `form:"garden_id" json:"garden_id"`
  68. }
  69. type GardenSetMchRequest struct {
  70. base.Header
  71. GardenSetMchBody
  72. }
  73. type GardenSetMchResponse struct {
  74. base.Result
  75. }
  76. type GardenSetMchPayModeBody struct {
  77. GardenId int64 `form:"garden_id" json:"garden_id"`
  78. // 1 不支持线上支付 2 支付到物业公司账户 3 支付到软件提供商账户
  79. PayMode int32 `form:"pay_mode" json:"pay_mode"`
  80. }
  81. type GardenSetMchPayModeRequest struct {
  82. base.Header
  83. GardenSetMchPayModeBody
  84. }
  85. type GardenSetMchPayModeResponse struct {
  86. base.Result
  87. }
  88. type CompanyMchGardenListQuery struct {
  89. MchId string `form:"mch_id" json:"mch_id"`
  90. }
  91. type CompanyMchGardenListRequest struct {
  92. base.Header
  93. CompanyMchGardenListQuery
  94. }
  95. type CompanyMchGardenListResponse struct {
  96. base.Result
  97. Data v1.CompanyMchGardenListReply `json:"data"`
  98. }