garden.go 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. package v1
  2. import (
  3. "property-applete-gateway/param/base"
  4. "property-applete-gateway/pb/v1"
  5. )
  6. type BuildingAddBody struct {
  7. // 楼栋编号
  8. BuildingNumber string `form:"building_number" json:"building_number"`
  9. // 楼栋名
  10. BuildingName string `form:"building_name" json:"building_name"`
  11. // 楼栋建筑面积
  12. BuildingArea float64 `form:"building_area" json:"building_area"`
  13. // 楼栋使用面积
  14. BuildingUsedArea float64 `form:"building_used_area" json:"building_used_area"`
  15. // 备注
  16. Comment string `form:"=comment" json:"comment"`
  17. }
  18. type BuildingAddRequest struct {
  19. base.Header
  20. BuildingAddBody
  21. }
  22. type BuildingAddResponse struct {
  23. base.Result
  24. Data v1.BuildingAddReply `json:"data"`
  25. }
  26. type BuildingUpdateBody struct {
  27. Id int64 `form:"id"`
  28. // 楼栋编号
  29. BuildingNumber string `form:"building_number" json:"building_number"`
  30. // 楼栋名
  31. BuildingName string `form:"building_name" json:"building_name"`
  32. // 楼栋建筑面积
  33. BuildingArea float64 `form:"building_area" json:"building_area"`
  34. // 楼栋使用面积
  35. BuildingUsedArea float64 `form:"building_used_area" json:"building_used_area"`
  36. // 备注
  37. Comment string `form:"=comment" json:"comment"`
  38. }
  39. type BuildingUpdateRequest struct {
  40. base.Header
  41. BuildingUpdateBody
  42. }
  43. type BuildingUpdateResponse struct {
  44. base.Result
  45. }
  46. type BuildingDelQuery struct {
  47. Id int64 `form:"id"`
  48. }
  49. type BuildingDelRequest struct {
  50. base.Header
  51. BuildingDelQuery
  52. }
  53. type BuildingDelResponse struct {
  54. base.Result
  55. }
  56. type BuildingListQuery struct {
  57. Page int64 `form:"page"`
  58. PageSize int64 `form:"page_size"`
  59. BuildingNumber string `form:"building_number" json:"building_number"`
  60. }
  61. type BuildingListRequest struct {
  62. base.Header
  63. BuildingListQuery
  64. }
  65. type BuildingListResponse struct {
  66. base.Result
  67. Data v1.BuildingListReply `json:"data"`
  68. }
  69. type UnitAddBody struct {
  70. BuildingId int64 `form:"building_id" json:"building_id"`
  71. // 单元编号
  72. UnitNumber int64 `form:"unit_number" json:"unit_number"`
  73. // 单元名
  74. UnitName string `form:"unit_name" json:"unit_name"`
  75. // 楼层数
  76. UnitLayers int64 `form:"unit_layers" json:"unit_layers"`
  77. // 是否有电梯
  78. HasLift bool `form:"has_lift" json:"has_lift"`
  79. }
  80. type UnitAddRequest struct {
  81. base.Header
  82. UnitAddBody
  83. }
  84. type UnitAddResponse struct {
  85. base.Result
  86. Data v1.UnitAddReply `json:"data"`
  87. }
  88. type UnitUpdateBody struct {
  89. Id int64 `form:"id"`
  90. BuildingId int64 `form:"building_id" json:"building_id"`
  91. // 单元编号
  92. UnitNumber int64 `form:"unit_number" json:"unit_number"`
  93. // 单元名
  94. UnitName string `form:"unit_name" json:"unit_name"`
  95. // 楼层数
  96. UnitLayers int64 `form:"unit_layers" json:"unit_layers"`
  97. // 是否有电梯
  98. HasLift bool `form:"has_lift" json:"has_lift"`
  99. }
  100. type UnitUpdateRequest struct {
  101. base.Header
  102. UnitUpdateBody
  103. }
  104. type UnitUpdateResponse struct {
  105. base.Result
  106. }
  107. type UnitDelQuery struct {
  108. Id int64 `form:"id"`
  109. }
  110. type UnitDelRequest struct {
  111. base.Header
  112. UnitDelQuery
  113. }
  114. type UnitDelResponse struct {
  115. base.Result
  116. }
  117. type UnitListQuery struct {
  118. Page int64 `form:"page"`
  119. PageSize int64 `form:"page_size"`
  120. UnitNumber int64 `form:"unit_number" json:"unit_number"`
  121. BuildingId int64 `form:"building_id" json:"building_id"`
  122. }
  123. type UnitListRequest struct {
  124. base.Header
  125. UnitListQuery
  126. }
  127. type UnitListResponse struct {
  128. base.Result
  129. Data v1.UnitListReply `json:"data"`
  130. }
  131. type HouseAddBody struct {
  132. // 单元id
  133. UnitId int64 `form:"unit_id" json:"unit_id"`
  134. // 门牌号
  135. HouseNumber string `form:"house_number" json:"house_number"`
  136. // 楼层
  137. Layer int64 `form:"layer" json:"layer"`
  138. // 几室
  139. RoomCount int64 `form:"room_count" json:"room_count"`
  140. // 几厅
  141. HallCount int64 `form:"hall_count" json:"hall_count"`
  142. // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅
  143. HouseType int64 `form:"house_type" json:"house_type"`
  144. // 房屋建筑面积
  145. HouseArea float64 `form:"house_area" json:"house_area"`
  146. // 房屋使用面积
  147. HouseUsedArea float64 `form:"house_used_area" json:"house_used_area"`
  148. }
  149. type HouseAddRequest struct {
  150. base.Header
  151. HouseAddBody
  152. }
  153. type HouseAddResponse struct {
  154. base.Result
  155. Data v1.HouseAddReply `json:"data"`
  156. }
  157. type HouseUpdateBody struct {
  158. Id int64 `form:"id"`
  159. // 单元id
  160. UnitId int64 `form:"unit_id" json:"unit_id"`
  161. // 门牌号
  162. HouseNumber string `form:"house_number" json:"house_number"`
  163. // 楼层
  164. Layer int64 `form:"layer" json:"layer"`
  165. // 几室
  166. RoomCount int64 `form:"room_count" json:"room_count"`
  167. // 几厅
  168. HallCount int64 `form:"hall_count" json:"hall_count"`
  169. // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅
  170. HouseType int64 `form:"house_type" json:"house_type"`
  171. // 房屋建筑面积
  172. HouseArea float64 `form:"house_area" json:"house_area"`
  173. // 房屋使用面积
  174. HouseUsedArea float64 `form:"house_used_area" json:"house_used_area"`
  175. }
  176. type HouseUpdateRequest struct {
  177. base.Header
  178. HouseUpdateBody
  179. }
  180. type HouseUpdateResponse struct {
  181. base.Result
  182. }
  183. type HouseDelQuery struct {
  184. Id int64 `form:"id"`
  185. }
  186. type HouseDelRequest struct {
  187. base.Header
  188. HouseDelQuery
  189. }
  190. type HouseDelResponse struct {
  191. base.Result
  192. }
  193. type HouseListQuery struct {
  194. Page int64 `form:"page"`
  195. PageSize int64 `form:"page_size"`
  196. HouseNumber string `form:"house_number" json:"house_number"`
  197. BuildingId int64 `form:"building_id" json:"building_id"`
  198. UnitId int64 `form:"unit_id" json:"unit_id"`
  199. HouseType int32 `form:"house_type" json:"house_type"`
  200. HouseholdUid int64 `form:"household_uid" json:"household_uid"`
  201. HouseRent bool `form:"house_rent" json:"house_rent"`
  202. }
  203. type HouseListRequest struct {
  204. base.Header
  205. HouseListQuery
  206. }
  207. type HouseListResponse struct {
  208. base.Result
  209. Data v1.HouseListReply `json:"data"`
  210. }
  211. type BatchHouseAddBody struct {
  212. Buildings []v1.BatchBuildingItem `form:"buildings"`
  213. Units []v1.BatchUnitItem `form:"units"`
  214. Houses []v1.BatchHouseItem `form:"houses"`
  215. }
  216. type BatchHouseAddRequest struct {
  217. base.Header
  218. BatchHouseAddBody
  219. }
  220. type BatchHouseAddResponse struct {
  221. base.Result
  222. }
  223. type GardenInfoRequest struct {
  224. base.Header
  225. }
  226. type GardenInfoResponse struct {
  227. base.Result
  228. Data v1.GardenItem `json:"data"`
  229. }
  230. type GardenUpdateBody struct {
  231. // 省
  232. //Province string `form:"province" json:"province"`
  233. //ProvinceCode string `form:"province_code" json:"province_code"`
  234. // 市
  235. //City string `form:"city" json:"city"`
  236. //CityCode string `form:"city_code" json:"city_code"`
  237. // 区
  238. //Area string `form:"area" json:"area"`
  239. //AreaCode string `form:"area_code" json:"area_code"`
  240. // 街道
  241. //Street string `form:"street" json:"street"`
  242. //StreetCode string `form:"street_code" json:"street_code"`
  243. // 社区
  244. //Committee string `form:"committee" json:"committee"`
  245. //CommitteeCode string `form:"committee_code" json:"committee_code"`
  246. // 小区名字
  247. //GardenName string `form:"garden_name" json:"garden_name"`
  248. // 小区地址
  249. GardenAddr string `form:"garden_addr" json:"garden_addr"`
  250. // 物业联系人
  251. PropertyPerson string `form:"property_person" json:"property_person"`
  252. // 物业联系人手机号
  253. PropertyPhone string `form:"property_phone" json:"property_phone"`
  254. // 小区形象图片
  255. GardenPic string `form:"garden_pic" json:"garden_pic"`
  256. // 小区描述
  257. GardenDesc string `form:"garden_desc" json:"garden_desc"`
  258. // 经度
  259. Lnt float64 `form:"lnt" json:"lnt"`
  260. // 纬度
  261. Lat float64 `form:"lat" json:"lat"`
  262. }
  263. type GardenUpdateRequest struct {
  264. base.Header
  265. GardenUpdateBody
  266. }
  267. type GardenUpdateResponse struct {
  268. base.Result
  269. }
  270. type GardenKeyInfoChangeBody struct {
  271. // 省
  272. Province string `form:"province" json:"province"`
  273. ProvinceCode string `form:"province_code" json:"province_code"`
  274. // 市
  275. City string `form:"city" json:"city"`
  276. CityCode string `form:"city_code" json:"city_code"`
  277. // 区
  278. Area string `form:"area" json:"area"`
  279. AreaCode string `form:"area_code" json:"area_code"`
  280. // 街道
  281. Street string `form:"street" json:"street"`
  282. StreetCode string `form:"street_code" json:"street_code"`
  283. // 社区
  284. Committee string `form:"committee" json:"committee"`
  285. CommitteeCode string `form:"committee_code" json:"committee_code"`
  286. // 小区名字
  287. GardenName string `form:"garden_name" json:"garden_name"`
  288. }
  289. type GardenKeyInfoChangeRequest struct {
  290. base.Header
  291. GardenKeyInfoChangeBody
  292. }
  293. type GardenKeyInfoChangeResponse struct {
  294. base.Result
  295. }
  296. type GardenKeyInfoChangeListQuery struct {
  297. Page int64 `form:"page"`
  298. PageSize int64 `form:"page_size" json:"page_size"`
  299. Status int32 `form:"status" json:"status"`
  300. }
  301. type GardenKeyInfoChangeListRequest struct {
  302. base.Header
  303. GardenKeyInfoChangeListQuery
  304. }
  305. type GardenKeyInfoChangeListResponse struct {
  306. base.Result
  307. Data v1.GardenKeyInfoChangeListReply `json:"data"`
  308. }