garden.go 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. package v1
  2. import (
  3. "property-company-gateway/param/base"
  4. pb_v1 "property-company-gateway/pb/v1"
  5. )
  6. type CompanyAddGardenBody struct {
  7. // 省
  8. Province string `form:"province" json:"province"`
  9. ProvinceCode string `form:"province_code" json:"province_code"`
  10. // 市
  11. City string `form:"city" json:"city"`
  12. CityCode string `form:"city_code" json:"city_code"`
  13. // 区
  14. Area string `form:"area" json:"area"`
  15. AreaCode string `form:"area_code" json:"area_code"`
  16. // 街道
  17. Street string `form:"street" json:"street"`
  18. StreetCode string `form:"street_code" json:"street_code"`
  19. // 社区
  20. Committee string `form:"committee" json:"committee"`
  21. CommitteeCode string `form:"committee_code" json:"committee_code"`
  22. // 小区名字
  23. GardenName string `form:"garden_name" json:"garden_name"`
  24. // 小区地址
  25. GardenAddr string `form:"garden_addr" json:"garden_addr"`
  26. // 物业联系人
  27. PropertyPerson string `form:"property_person" json:"property_person"`
  28. // 物业联系人手机号
  29. PropertyPhone string `form:"property_phone" json:"property_phone"`
  30. // 小区形象图片
  31. GardenPic string `form:"garden_pic" json:"garden_pic"`
  32. // 小区描述
  33. GardenDesc string `form:"garden_desc" json:"garden_desc"`
  34. // 经度
  35. Lnt float64 `form:"lnt" json:"lnt"`
  36. // 纬度
  37. Lat float64 `form:"lat" json:"lat"`
  38. // 证明材料
  39. Appendix []string `form:"appendix" json:"appendix"`
  40. // 套餐订单id
  41. OrderId int64 `form:"order_id" json:"order_id"`
  42. // 1塔楼 2 板楼 3 塔板结合 4 其他
  43. BuildingType int32 `form:"building_type" json:"building_type"`
  44. // 建成年份开始时间戳
  45. BuildingStart int64 `form:"building_start" json:"building_start"`
  46. // 建成年份结束时间戳
  47. BuildingEnd int64 `form:"building_end" json:"building_end"`
  48. // 绿化率
  49. GreenPercent float64 `form:"green_percent" json:"green_percent"`
  50. // 容积率
  51. AreaPercent float64 `form:"area_percent" json:"area_percent"`
  52. // 车位配比
  53. SpaceInfo string `form:"space_info" json:"space_info"`
  54. // 占地面积
  55. CoveredArea float64 `form:"covered_area" json:"covered_area"`
  56. // 建筑面积
  57. BuildingArea float64 `form:"building_area" json:"building_area"`
  58. // 小区图片
  59. GardenPics []string `form:"garden_pics" json:"garden_pics"`
  60. // 开发企业
  61. BuildingCompany string `form:"building_company" json:"building_company"`
  62. // 总户数
  63. HouseTotal int64 `form:"house_total" json:"house_total"`
  64. // 固定车位数
  65. SpaceTotal int64 `form:"space_total" json:"space_total"`
  66. // 物业费开始,单位分
  67. PropertyFeeStart int64 `form:"property_fee_start" json:"property_fee_start"`
  68. // 物业费结束, 单位分
  69. PropertyFeeEnd int64 `form:"property_fee_end" json:"property_fee_end"`
  70. // 水费类型多选 1 民用 2 商用
  71. WaterType []int32 `form:"water_type" json:"water_type"`
  72. // 电费类型多选 1 民用 2 商用
  73. ElectricType []int32 `form:"electric_type" json:"electric_type"`
  74. // 燃气费开始,单位分
  75. GasFeeStart int64 `form:"gas_fee_start" json:"gas_fee_start"`
  76. // 燃气费开始,单位分
  77. GasFeeEnd int64 `form:"gas_fee_end" json:"gas_fee_end"`
  78. AvgPrice int64 `form:"avg_price" json:"avg_price"`
  79. }
  80. type CompanyAddGardenRequest struct {
  81. base.Header
  82. CompanyAddGardenBody
  83. }
  84. type CompanyAddGardenResponse struct {
  85. base.Result
  86. Data pb_v1.CompanyAddGardenReply `json:"data"`
  87. }
  88. type CompanyGardenListQuery struct {
  89. Page int64 `form:"page"`
  90. PageSize int64 `form:"page_size" json:"page_size"`
  91. NotApproved bool `form:"not_approved" json:"not_approved"`
  92. GardenName string `form:"garden_name" json:"garden_name"`
  93. }
  94. type CompanyGardenListRequest struct {
  95. base.Header
  96. CompanyGardenListQuery
  97. }
  98. type CompanyGardenListResponse struct {
  99. base.Result
  100. Data pb_v1.GardenListReply `json:"data"`
  101. }
  102. type CompanyGardenDelQuery struct {
  103. Id int64 `form:"id" json:"id"`
  104. }
  105. type CompanyGardenDelRequest struct {
  106. base.Header
  107. CompanyGardenDelQuery
  108. }
  109. type CompanyGardenDelResponse struct {
  110. base.Result
  111. }
  112. type CompanyGardenUpdateBody struct {
  113. // 省
  114. //Province string `form:"province" json:"province"`
  115. //ProvinceCode string `form:"province_code" json:"province_code"`
  116. // 市
  117. //City string `form:"city" json:"city"`
  118. //CityCode string `form:"city_code" json:"city_code"`
  119. // 区
  120. //Area string `form:"area" json:"area"`
  121. //AreaCode string `form:"area_code" json:"area_code"`
  122. // 街道
  123. //Street string `form:"street" json:"street"`
  124. //StreetCode string `form:"street_code" json:"street_code"`
  125. // 社区
  126. //Committee string `form:"committee" json:"committee"`
  127. //CommitteeCode string `form:"committee_code" json:"committee_code"`
  128. // 小区名字
  129. //GardenName string `form:"garden_name" json:"garden_name"`
  130. // 小区地址
  131. GardenAddr string `form:"garden_addr" json:"garden_addr"`
  132. // 物业联系人
  133. PropertyPerson string `form:"property_person" json:"property_person"`
  134. // 物业联系人手机号
  135. PropertyPhone string `form:"property_phone" json:"property_phone"`
  136. Id int64 `form:"id" json:"id"`
  137. // 小区形象图片
  138. GardenPic string `form:"garden_pic" json:"garden_pic"`
  139. // 小区描述
  140. GardenDesc string `form:"garden_desc" json:"garden_desc"`
  141. // 经度
  142. Lnt float64 `form:"lnt"`
  143. // 纬度
  144. Lat float64 `form:"lat"`
  145. // 1塔楼 2 板楼 3 塔板结合 4 其他
  146. BuildingType int32 `form:"building_type" json:"building_type"`
  147. // 建成年份开始时间戳
  148. BuildingStart int64 `form:"building_start" json:"building_start"`
  149. // 建成年份结束时间戳
  150. BuildingEnd int64 `form:"building_end" json:"building_end"`
  151. // 绿化率
  152. GreenPercent float64 `form:"green_percent" json:"green_percent"`
  153. // 容积率
  154. AreaPercent float64 `form:"area_percent" json:"area_percent"`
  155. // 车位配比
  156. SpaceInfo string `form:"space_info" json:"space_info"`
  157. // 占地面积
  158. CoveredArea float64 `form:"covered_area" json:"covered_area"`
  159. // 建筑面积
  160. BuildingArea float64 `form:"building_area" json:"building_area"`
  161. // 小区图片
  162. GardenPics []string `form:"garden_pics" json:"garden_pics"`
  163. // 开发企业
  164. BuildingCompany string `form:"building_company" json:"building_company"`
  165. // 总户数
  166. HouseTotal int64 `form:"house_total" json:"house_total"`
  167. // 固定车位数
  168. SpaceTotal int64 `form:"space_total" json:"space_total"`
  169. // 物业费开始,单位分
  170. PropertyFeeStart int64 `form:"property_fee_start" json:"property_fee_start"`
  171. // 物业费结束, 单位分
  172. PropertyFeeEnd int64 `form:"property_fee_end" json:"property_fee_end"`
  173. // 水费类型多选 1 民用 2 商用
  174. WaterType []int32 `form:"water_type" json:"water_type"`
  175. // 电费类型多选 1 民用 2 商用
  176. ElectricType []int32 `form:"electric_type" json:"electric_type"`
  177. // 燃气费开始,单位分
  178. GasFeeStart int64 `form:"gas_fee_start" json:"gas_fee_start"`
  179. // 燃气费开始,单位分
  180. GasFeeEnd int64 `form:"gas_fee_end" json:"gas_fee_end"`
  181. AvgPrice int64 `form:"avg_price" json:"avg_price"`
  182. }
  183. type CompanyGardenUpdateRequest struct {
  184. base.Header
  185. CompanyGardenUpdateBody
  186. }
  187. type CompanyGardenUpdateResponse struct {
  188. base.Result
  189. }
  190. type CompanyEnterGardenQuery struct {
  191. GardenId int64 `form:"garden_id" json:"garden_id"`
  192. }
  193. type CompanyEnterGardenRequest struct {
  194. base.Header
  195. CompanyEnterGardenQuery
  196. }
  197. type CompanyEnterGardenData struct {
  198. Token string `json:"token"`
  199. }
  200. type CompanyEnterGardenResponse struct {
  201. base.Result
  202. Data CompanyEnterGardenData `json:"data"`
  203. }
  204. type GardenKeyInfoChangeBody struct {
  205. // 省
  206. Province string `form:"province" json:"province"`
  207. ProvinceCode string `form:"province_code" json:"province_code"`
  208. // 市
  209. City string `form:"city" json:"city"`
  210. CityCode string `form:"city_code" json:"city_code"`
  211. // 区
  212. Area string `form:"area" json:"area"`
  213. AreaCode string `form:"area_code" json:"area_code"`
  214. // 街道
  215. Street string `form:"street" json:"street"`
  216. StreetCode string `form:"street_code" json:"street_code"`
  217. // 社区
  218. Committee string `form:"committee" json:"committee"`
  219. CommitteeCode string `form:"committee_code" json:"committee_code"`
  220. // 小区名字
  221. GardenName string `form:"garden_name" json:"garden_name"`
  222. GardenId int64 `form:"garden_id" json:"garden_id"`
  223. }
  224. type GardenKeyInfoChangeRequest struct {
  225. base.Header
  226. GardenKeyInfoChangeBody
  227. }
  228. type GardenKeyInfoChangeResponse struct {
  229. base.Result
  230. }
  231. type GardenKeyInfoChangeListQuery struct {
  232. Page int64 `form:"page"`
  233. PageSize int64 `form:"page_size" json:"page_size"`
  234. Status int32 `form:"status" json:"status"`
  235. }
  236. type GardenKeyInfoChangeListRequest struct {
  237. base.Header
  238. GardenKeyInfoChangeListQuery
  239. }
  240. type GardenKeyInfoChangeListResponse struct {
  241. base.Result
  242. Data pb_v1.GardenKeyInfoChangeListReply `json:"data"`
  243. }
  244. type CompanyCanAddGardenRequest struct {
  245. base.Header
  246. }
  247. type CompanyCanAddGardenResponse struct {
  248. base.Result
  249. Data pb_v1.CompanyCanAddGardenReply `json:"data"`
  250. }