garden.go 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. package v1
  2. import (
  3. "property-household-gateway/param/base"
  4. "property-household-gateway/pb/v1"
  5. )
  6. type BuildingManagerListQuery struct {
  7. GardenId int64 `form:"garden_id" json:"garden_id"`
  8. HouseId int64 `form:"house_id" json:"house_id"`
  9. }
  10. type BuildingManagerListRequest struct {
  11. base.Header
  12. BuildingManagerListQuery
  13. }
  14. type BuildingManagerListResponse struct {
  15. base.Result
  16. Data v1.BuildingManagerListReply `json:"data"`
  17. }
  18. type GardenInfoQuery struct {
  19. GardenId int64 `form:"garden_id" json:"garden_id"`
  20. }
  21. type GardenInfoRequest struct {
  22. base.Header
  23. GardenInfoQuery
  24. }
  25. type GardenInfoResponse struct {
  26. base.Result
  27. Data v1.GardenItem `json:"data"`
  28. }
  29. type GardenListQuery struct {
  30. CommitteeCode string `form:"committee_code" json:"committee_code"`
  31. StreetCode string `form:"street_code" json:"street_code"`
  32. GardenName string `form:"garden_name" json:"garden_name"`
  33. ProvinceCode string `form:"province_code" json:"province_code"`
  34. CityCode string `form:"city_code" json:"city_code"`
  35. AreaCode string `form:"area_code" json:"area_code"`
  36. BuildingType int32 `form:"building_type" json:"building_type"`
  37. BuildingYearGreater int64 `form:"building_year_greater" json:"building_year_greater"`
  38. BuildingYearLess int64 `form:"building_year_less" json:"building_year_less"`
  39. PriceGreater int64 `form:"price_greater" json:"price_greater"`
  40. PriceLess int64 `form:"price_less" json:"price_less"`
  41. }
  42. type GardenListRequest struct {
  43. base.Header
  44. GardenListQuery
  45. }
  46. type GardenListResponse struct {
  47. base.Result
  48. Data v1.GardenListReply `json:"data"`
  49. }
  50. type BuildingListQuery struct {
  51. GardenId int64 `form:"garden_id" json:"garden_id"`
  52. }
  53. type BuildingListRequest struct {
  54. base.Header
  55. BuildingListQuery
  56. }
  57. type BuildingListResponse struct {
  58. base.Result
  59. Data v1.BuildingListReply `json:"data"`
  60. }
  61. type UnitListQuery struct {
  62. BuildingId int64 `form:"building_id" json:"building_id"`
  63. GardenId int64 `form:"garden_id" json:"garden_id"`
  64. }
  65. type UnitListRequest struct {
  66. base.Header
  67. UnitListQuery
  68. }
  69. type UnitListResponse struct {
  70. base.Result
  71. Data v1.UnitListReply `json:"data"`
  72. }
  73. type HouseListQuery struct {
  74. UnitId int64 `form:"unit_id" json:"unit_id"`
  75. GardenId int64 `form:"garden_id" json:"garden_id"`
  76. HouseRent bool `form:"house_rent" json:"house_rent"`
  77. }
  78. type HouseListRequest struct {
  79. base.Header
  80. HouseListQuery
  81. }
  82. type HouseListResponse struct {
  83. base.Result
  84. Data v1.HouseListReply `json:"data"`
  85. }