garden.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. package v1
  2. import (
  3. "property-system-gateway/param/base"
  4. "property-system-gateway/pb/v1"
  5. )
  6. type BuildingAddManagerBody struct {
  7. ManagerUid int64 `form:"manager_uid" json:"manager_uid"`
  8. BuildingId int64 `form:"building_id" json:"building_id"`
  9. }
  10. type BuildingAddManagerRequest struct {
  11. base.Header
  12. BuildingAddManagerBody
  13. }
  14. type BuildingAddManagerResponse struct {
  15. base.Result
  16. Data v1.BuildingAddManagerReply `json:"data"`
  17. }
  18. type BuildingDelManagerQuery struct {
  19. Id int64 `form:"id" json:"id"`
  20. }
  21. type BuildingDelManagerRequest struct {
  22. base.Header
  23. BuildingDelManagerQuery
  24. }
  25. type BuildingDelManagerResponse struct {
  26. base.Result
  27. }
  28. type BuildingManagerListQuery struct {
  29. BuildingId int64 `form:"building_id" json:"building_id"`
  30. }
  31. type BuildingManagerListRequest struct {
  32. base.Header
  33. BuildingManagerListQuery
  34. }
  35. type BuildingManagerListResponse struct {
  36. base.Result
  37. Data v1.BuildingManagerListReply `json:"data"`
  38. }
  39. type BuildingAddBody struct {
  40. // 楼栋编号
  41. BuildingNumber string `form:"building_number" json:"building_number"`
  42. // 楼栋名
  43. BuildingName string `form:"building_name" json:"building_name"`
  44. // 楼栋建筑面积
  45. BuildingArea float64 `form:"building_area" json:"building_area"`
  46. // 楼栋使用面积
  47. BuildingUsedArea float64 `form:"building_used_area" json:"building_used_area"`
  48. // 备注
  49. Comment string `form:"=comment" json:"comment"`
  50. }
  51. type BuildingAddRequest struct {
  52. base.Header
  53. BuildingAddBody
  54. }
  55. type BuildingAddResponse struct {
  56. base.Result
  57. Data v1.BuildingAddReply `json:"data"`
  58. }
  59. type BuildingUpdateBody struct {
  60. Id int64 `form:"id"`
  61. // 楼栋编号
  62. BuildingNumber string `form:"building_number" json:"building_number"`
  63. // 楼栋名
  64. BuildingName string `form:"building_name" json:"building_name"`
  65. // 楼栋建筑面积
  66. BuildingArea float64 `form:"building_area" json:"building_area"`
  67. // 楼栋使用面积
  68. BuildingUsedArea float64 `form:"building_used_area" json:"building_used_area"`
  69. // 备注
  70. Comment string `form:"=comment" json:"comment"`
  71. }
  72. type BuildingUpdateRequest struct {
  73. base.Header
  74. BuildingUpdateBody
  75. }
  76. type BuildingUpdateResponse struct {
  77. base.Result
  78. }
  79. type BuildingDelQuery struct {
  80. Id int64 `form:"id"`
  81. }
  82. type BuildingDelRequest struct {
  83. base.Header
  84. BuildingDelQuery
  85. }
  86. type BuildingDelResponse struct {
  87. base.Result
  88. }
  89. type BuildingListQuery struct {
  90. Page int64 `form:"page"`
  91. PageSize int64 `form:"page_size"`
  92. BuildingNumber string `form:"building_number" json:"building_number"`
  93. }
  94. type BuildingListRequest struct {
  95. base.Header
  96. BuildingListQuery
  97. }
  98. type BuildingListResponse struct {
  99. base.Result
  100. Data v1.BuildingListReply `json:"data"`
  101. }
  102. type UnitAddBody struct {
  103. BuildingId int64 `form:"building_id" json:"building_id"`
  104. // 单元编号
  105. UnitNumber int64 `form:"unit_number" json:"unit_number"`
  106. // 单元名
  107. UnitName string `form:"unit_name" json:"unit_name"`
  108. // 楼层数
  109. UnitLayers int64 `form:"unit_layers" json:"unit_layers"`
  110. // 是否有电梯
  111. HasLift bool `form:"has_lift" json:"has_lift"`
  112. }
  113. type UnitAddRequest struct {
  114. base.Header
  115. UnitAddBody
  116. }
  117. type UnitAddResponse struct {
  118. base.Result
  119. Data v1.UnitAddReply `json:"data"`
  120. }
  121. type UnitUpdateBody struct {
  122. Id int64 `form:"id"`
  123. BuildingId int64 `form:"building_id" json:"building_id"`
  124. // 单元编号
  125. UnitNumber int64 `form:"unit_number" json:"unit_number"`
  126. // 单元名
  127. UnitName string `form:"unit_name" json:"unit_name"`
  128. // 楼层数
  129. UnitLayers int64 `form:"unit_layers" json:"unit_layers"`
  130. // 是否有电梯
  131. HasLift bool `form:"has_lift" json:"has_lift"`
  132. }
  133. type UnitUpdateRequest struct {
  134. base.Header
  135. UnitUpdateBody
  136. }
  137. type UnitUpdateResponse struct {
  138. base.Result
  139. }
  140. type UnitDelQuery struct {
  141. Id int64 `form:"id"`
  142. }
  143. type UnitDelRequest struct {
  144. base.Header
  145. UnitDelQuery
  146. }
  147. type UnitDelResponse struct {
  148. base.Result
  149. }
  150. type UnitListQuery struct {
  151. Page int64 `form:"page"`
  152. PageSize int64 `form:"page_size"`
  153. UnitNumber int64 `form:"unit_number" json:"unit_number"`
  154. BuildingId int64 `form:"building_id" json:"building_id"`
  155. }
  156. type UnitListRequest struct {
  157. base.Header
  158. UnitListQuery
  159. }
  160. type UnitListResponse struct {
  161. base.Result
  162. Data v1.UnitListReply `json:"data"`
  163. }
  164. type HouseAddBody struct {
  165. // 单元id
  166. UnitId int64 `form:"unit_id" json:"unit_id"`
  167. // 门牌号
  168. HouseNumber string `form:"house_number" json:"house_number"`
  169. // 楼层
  170. Layer int64 `form:"layer" json:"layer"`
  171. // 几室
  172. RoomCount int64 `form:"room_count" json:"room_count"`
  173. // 几厅
  174. HallCount int64 `form:"hall_count" json:"hall_count"`
  175. // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅
  176. HouseType int64 `form:"house_type" json:"house_type"`
  177. // 房屋建筑面积
  178. HouseArea float64 `form:"house_area" json:"house_area"`
  179. // 房屋使用面积
  180. HouseUsedArea float64 `form:"house_used_area" json:"house_used_area"`
  181. BuildingId int64 `form:"building_id" json:"building_id"`
  182. }
  183. type HouseAddRequest struct {
  184. base.Header
  185. HouseAddBody
  186. }
  187. type HouseAddResponse struct {
  188. base.Result
  189. Data v1.HouseAddReply `json:"data"`
  190. }
  191. type HouseUpdateBody struct {
  192. Id int64 `form:"id"`
  193. // 单元id
  194. UnitId int64 `form:"unit_id" json:"unit_id"`
  195. // 门牌号
  196. HouseNumber string `form:"house_number" json:"house_number"`
  197. // 楼层
  198. Layer int64 `form:"layer" json:"layer"`
  199. // 几室
  200. RoomCount int64 `form:"room_count" json:"room_count"`
  201. // 几厅
  202. HallCount int64 `form:"hall_count" json:"hall_count"`
  203. // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅
  204. HouseType int64 `form:"house_type" json:"house_type"`
  205. // 房屋建筑面积
  206. HouseArea float64 `form:"house_area" json:"house_area"`
  207. // 房屋使用面积
  208. HouseUsedArea float64 `form:"house_used_area" json:"house_used_area"`
  209. }
  210. type HouseUpdateRequest struct {
  211. base.Header
  212. HouseUpdateBody
  213. }
  214. type HouseUpdateResponse struct {
  215. base.Result
  216. }
  217. type HouseDelQuery struct {
  218. Id int64 `form:"id"`
  219. }
  220. type HouseDelRequest struct {
  221. base.Header
  222. HouseDelQuery
  223. }
  224. type HouseDelResponse struct {
  225. base.Result
  226. }
  227. type HouseListQuery struct {
  228. Page int64 `form:"page"`
  229. PageSize int64 `form:"page_size"`
  230. HouseNumber string `form:"house_number" json:"house_number"`
  231. HouseName string `form:"house_name" json:"house_name"`
  232. BuildingId int64 `form:"building_id" json:"building_id"`
  233. UnitId int64 `form:"unit_id" json:"unit_id"`
  234. HouseType int32 `form:"house_type" json:"house_type"`
  235. HouseholdUid int64 `form:"household_uid" json:"household_uid"`
  236. HouseRent bool `form:"house_rent" json:"house_rent"`
  237. }
  238. type HouseListRequest struct {
  239. base.Header
  240. HouseListQuery
  241. }
  242. type HouseListResponse struct {
  243. base.Result
  244. Data v1.HouseListReply `json:"data"`
  245. }
  246. type BatchHouseAddBody struct {
  247. Buildings []v1.BatchBuildingItem `form:"buildings"`
  248. Units []v1.BatchUnitItem `form:"units"`
  249. Houses []v1.BatchHouseItem `form:"houses"`
  250. }
  251. type BatchHouseAddRequest struct {
  252. base.Header
  253. BatchHouseAddBody
  254. }
  255. type BatchHouseAddResponse struct {
  256. base.Result
  257. }
  258. type GardenInfoRequest struct {
  259. base.Header
  260. }
  261. type GardenInfoResponse struct {
  262. base.Result
  263. Data v1.GardenItem `json:"data"`
  264. }
  265. type GardenUpdateBody struct {
  266. // 省
  267. //Province string `form:"province" json:"province"`
  268. //ProvinceCode string `form:"province_code" json:"province_code"`
  269. // 市
  270. //City string `form:"city" json:"city"`
  271. //CityCode string `form:"city_code" json:"city_code"`
  272. // 区
  273. //Area string `form:"area" json:"area"`
  274. //AreaCode string `form:"area_code" json:"area_code"`
  275. // 街道
  276. //Street string `form:"street" json:"street"`
  277. //StreetCode string `form:"street_code" json:"street_code"`
  278. // 社区
  279. //Committee string `form:"committee" json:"committee"`
  280. //CommitteeCode string `form:"committee_code" json:"committee_code"`
  281. // 小区名字
  282. //GardenName string `form:"garden_name" json:"garden_name"`
  283. // 小区地址
  284. GardenAddr string `form:"garden_addr" json:"garden_addr"`
  285. // 物业联系人
  286. PropertyPerson string `form:"property_person" json:"property_person"`
  287. // 物业联系人手机号
  288. PropertyPhone string `form:"property_phone" json:"property_phone"`
  289. // 小区形象图片
  290. GardenPic string `form:"garden_pic" json:"garden_pic"`
  291. // 小区描述
  292. GardenDesc string `form:"garden_desc" json:"garden_desc"`
  293. // 经度
  294. Lnt float64 `form:"lnt" json:"lnt"`
  295. // 纬度
  296. Lat float64 `form:"lat" json:"lat"`
  297. // 1塔楼 2 板楼 3 塔板结合 4 其他
  298. BuildingType int32 `form:"building_type" json:"building_type"`
  299. // 建成年份开始时间戳
  300. BuildingStart int64 `form:"building_start" json:"building_start"`
  301. // 建成年份结束时间戳
  302. BuildingEnd int64 `form:"building_end" json:"building_end"`
  303. // 绿化率
  304. GreenPercent float64 `form:"green_percent" json:"green_percent"`
  305. // 容积率
  306. AreaPercent float64 `form:"area_percent" json:"area_percent"`
  307. // 车位配比
  308. SpaceInfo string `form:"space_info" json:"space_info"`
  309. // 占地面积
  310. CoveredArea float64 `form:"covered_area" json:"covered_area"`
  311. // 建筑面积
  312. BuildingArea float64 `form:"building_area" json:"building_area"`
  313. // 小区图片
  314. GardenPics []string `form:"garden_pics" json:"garden_pics"`
  315. // 开发企业
  316. BuildingCompany string `form:"building_company" json:"building_company"`
  317. // 总户数
  318. HouseTotal int64 `form:"house_total" json:"house_total"`
  319. // 固定车位数
  320. SpaceTotal int64 `form:"space_total" json:"space_total"`
  321. // 物业费开始,单位分
  322. PropertyFeeStart int64 `form:"property_fee_start" json:"property_fee_start"`
  323. // 物业费结束, 单位分
  324. PropertyFeeEnd int64 `form:"property_fee_end" json:"property_fee_end"`
  325. // 水费类型多选 1 民用 2 商用
  326. WaterType []int32 `form:"water_type" json:"water_type"`
  327. // 电费类型多选 1 民用 2 商用
  328. ElectricType []int32 `form:"electric_type" json:"electric_type"`
  329. // 燃气费开始,单位分
  330. GasFeeStart int64 `form:"gas_fee_start" json:"gas_fee_start"`
  331. // 燃气费开始,单位分
  332. GasFeeEnd int64 `form:"gas_fee_end" json:"gas_fee_end"`
  333. AvgPrice int64 `form:"avg_price" json:"avg_price"`
  334. }
  335. type GardenUpdateRequest struct {
  336. base.Header
  337. GardenUpdateBody
  338. }
  339. type GardenUpdateResponse struct {
  340. base.Result
  341. }
  342. type GardenKeyInfoChangeBody struct {
  343. // 省
  344. Province string `form:"province" json:"province"`
  345. ProvinceCode string `form:"province_code" json:"province_code"`
  346. // 市
  347. City string `form:"city" json:"city"`
  348. CityCode string `form:"city_code" json:"city_code"`
  349. // 区
  350. Area string `form:"area" json:"area"`
  351. AreaCode string `form:"area_code" json:"area_code"`
  352. // 街道
  353. Street string `form:"street" json:"street"`
  354. StreetCode string `form:"street_code" json:"street_code"`
  355. // 社区
  356. Committee string `form:"committee" json:"committee"`
  357. CommitteeCode string `form:"committee_code" json:"committee_code"`
  358. // 小区名字
  359. GardenName string `form:"garden_name" json:"garden_name"`
  360. }
  361. type GardenKeyInfoChangeRequest struct {
  362. base.Header
  363. GardenKeyInfoChangeBody
  364. }
  365. type GardenKeyInfoChangeResponse struct {
  366. base.Result
  367. }
  368. type GardenKeyInfoChangeListQuery struct {
  369. Page int64 `form:"page"`
  370. PageSize int64 `form:"page_size" json:"page_size"`
  371. Status int32 `form:"status" json:"status"`
  372. }
  373. type GardenKeyInfoChangeListRequest struct {
  374. base.Header
  375. GardenKeyInfoChangeListQuery
  376. }
  377. type GardenKeyInfoChangeListResponse struct {
  378. base.Result
  379. Data v1.GardenKeyInfoChangeListReply `json:"data"`
  380. }