park.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. package v1
  2. import (
  3. "property-applete-gateway/param/base"
  4. "property-applete-gateway/pb/v1"
  5. )
  6. type ParkAddBody struct {
  7. ParkNumber string `form:"park_number" json:"park_number"`
  8. ParkName string `form:"park_name" json:"park_name"`
  9. Comment string `form:"comment" json:"comment"`
  10. ParkType int32 `form:"park_type" json:"park_type"`
  11. }
  12. type ParkAddRequest struct {
  13. base.Header
  14. ParkAddBody
  15. }
  16. type ParkAddResponse struct {
  17. base.Result
  18. Data v1.ParkAddReply `json:"data"`
  19. }
  20. type ParkUpdateBody struct {
  21. ParkNumber string `form:"park_number" json:"park_number"`
  22. ParkName string `form:"park_name" json:"park_name"`
  23. Comment string `form:"comment" json:"comment"`
  24. ParkType int32 `form:"park_type" json:"park_type"`
  25. Id int64 `form:"id"`
  26. }
  27. type ParkUpdateRequest struct {
  28. base.Header
  29. ParkUpdateBody
  30. }
  31. type ParkUpdateResponse struct {
  32. base.Result
  33. }
  34. type ParkDelQuery struct {
  35. Id int64 `form:"id"`
  36. }
  37. type ParkDelRequest struct {
  38. base.Header
  39. ParkDelQuery
  40. }
  41. type ParkDelResponse struct {
  42. base.Result
  43. }
  44. type ParkListRequest struct {
  45. base.Header
  46. }
  47. type ParkListResponse struct {
  48. base.Result
  49. Data v1.ParkListReply `json:"data"`
  50. }
  51. type ParkSpaceAddBody struct {
  52. SpaceNumber string `form:"space_number" json:"space_number"`
  53. SpaceArea float64 `form:"space_area" json:"space_area"`
  54. Comment string `form:"comment" json:"comment"`
  55. ParkId int64 `form:"park_id" json:"park_id"`
  56. SpaceType int32 `form:"space_type" json:"space_type"`
  57. HouseId int64 `form:"house_id" json:"house_id"`
  58. }
  59. type ParkSpaceAddRequest struct {
  60. base.Header
  61. ParkSpaceAddBody
  62. }
  63. type ParkSpaceAddResponse struct {
  64. base.Result
  65. Data v1.ParkSpaceAddReply `json:"data"`
  66. }
  67. type ParkSpaceUpdateBody struct {
  68. SpaceNumber string `form:"space_number" json:"space_number"`
  69. SpaceArea float64 `form:"space_area" json:"space_area"`
  70. Comment string `form:"comment" json:"comment"`
  71. ParkId int64 `form:"park_id" json:"park_id"`
  72. SpaceType int32 `form:"space_type" json:"space_type"`
  73. HouseId int64 `form:"house_id" json:"house_id"`
  74. Id int64 `form:"id"`
  75. }
  76. type ParkSpaceUpdateRequest struct {
  77. base.Header
  78. ParkSpaceUpdateBody
  79. }
  80. type ParkSpaceUpdateResponse struct {
  81. base.Result
  82. }
  83. type ParkSpaceDelQuery struct {
  84. Id int64 `form:"id"`
  85. }
  86. type ParkSpaceDelRequest struct {
  87. base.Header
  88. ParkSpaceDelQuery
  89. }
  90. type ParkSpaceDelResponse struct {
  91. base.Result
  92. }
  93. type ParkSpaceListQuery struct {
  94. ParkId int64 `form:"park_id" json:"park_id"`
  95. Page int64 `form:"page" json:"page"`
  96. PageSize int64 `form:"page_size" json:"page_size"`
  97. SpaceType int32 `form:"space_type" json:"space_type"`
  98. SpaceNumber string `form:"space_number" json:"space_number"`
  99. }
  100. type ParkSpaceListRequest struct {
  101. base.Header
  102. ParkSpaceListQuery
  103. }
  104. type ParkSpaceListResponse struct {
  105. base.Result
  106. Data v1.ParkSpaceListReply `json:"data"`
  107. }