household.proto 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-applete-gateway/pb/v1";
  6. message HouseholdApplyRequest {
  7. int64 uid = 1;
  8. // 1业主 2家人 3租客
  9. int32 user_type = 2;
  10. string phone = 3;
  11. string name = 4;
  12. int64 house_id = 5;
  13. // 1 身份证 2 护照
  14. int32 id_type = 6;
  15. // 证件号
  16. string id_number = 7;
  17. repeated string appendix = 8;
  18. }
  19. message HouseholdApplyReply {
  20. int64 id = 1;
  21. }
  22. message HouseholdApproveRequest {
  23. int64 id = 1;
  24. bool status = 2;
  25. string feedback = 3;
  26. }
  27. message HouseholdApproveReply {
  28. }
  29. message HouseholdListRequest {
  30. int64 garden_id = 1;
  31. int64 uid = 2;
  32. int64 page = 3;
  33. int64 page_size = 4;
  34. int32 approve_status = 5;
  35. int32 user_type = 6;
  36. string name = 7;
  37. }
  38. message HouseholdItem {
  39. int64 id = 1;
  40. // 1业主 2家人 3租客
  41. int32 user_type = 2;
  42. string phone = 3;
  43. string name = 4;
  44. repeated string appendix = 5;
  45. // 1 身份证 2 护照
  46. int32 id_type = 6;
  47. // 证件号
  48. string id_number = 7;
  49. // 房号
  50. string house_name = 8;
  51. int32 approve_status = 9;
  52. string garden_name = 10;
  53. }
  54. message HouseholdListReply {
  55. int64 page = 1;
  56. int64 total = 2;
  57. repeated HouseholdItem list = 3;
  58. }
  59. message HouseholdUserListRequest {
  60. int64 page = 1;
  61. int64 page_size = 2;
  62. int64 garden_id = 3;
  63. int32 user_type = 6;
  64. string name = 7;
  65. }
  66. message HouseholdUserItem {
  67. int64 id = 1;
  68. // 1业主 2家人 3租客
  69. int32 user_type = 2;
  70. string phone = 3;
  71. string name = 4;
  72. // 1 身份证 2 护照
  73. int32 id_type = 5;
  74. // 证件号
  75. string id_number = 6;
  76. string garden_name = 7;
  77. }
  78. message HouseholdUserListReply {
  79. int64 page = 1;
  80. int64 total = 2;
  81. repeated HouseholdUserItem list = 3;
  82. }
  83. message HouseRentBaseConf {
  84. // 床
  85. bool bed = 1;
  86. // 天然气
  87. bool gas = 2;
  88. // 暖气
  89. bool warm_gas = 3;
  90. // 宽带
  91. bool broadband = 4;
  92. // 冰箱
  93. bool refragerator = 5;
  94. // 衣柜
  95. bool wardobe = 6;
  96. // 沙发
  97. bool sofa = 7;
  98. // 空调
  99. bool aircondition = 8;
  100. // 电视机
  101. bool tv = 9;
  102. // 热水器
  103. bool heater = 10;
  104. // 洗衣机
  105. bool warshing = 11;
  106. }
  107. message HouseRentSpecialConf {
  108. // 智能门锁
  109. bool intelligent_lock = 1;
  110. // wifi
  111. bool wifi = 2;
  112. // 近地铁
  113. bool metro = 3;
  114. // 停车位
  115. bool park_space = 4;
  116. // 独卫
  117. bool independent_wc = 5;
  118. // 私人阳台
  119. bool private_balcony = 6;
  120. // 首次出租
  121. bool first_rent = 7;
  122. }
  123. message HouseRentApplyRequest {
  124. // 房屋号
  125. int64 house_id = 1;
  126. // 楼层
  127. int64 layer = 2;
  128. // 房屋建筑面积
  129. double house_area = 3;
  130. // 朝向
  131. int32 direction = 4;
  132. // 几室
  133. int64 room_count = 5;
  134. // 几厅
  135. int64 hall_count = 6;
  136. // 几卫
  137. int64 wc_count = 7;
  138. // 1 精装 2 简装 3 清水
  139. int32 decorating = 8;
  140. // 联系人
  141. string contacter = 9;
  142. // 联系人电话
  143. string contact_phone = 10;
  144. // 1 月付 2 季付 3 半年付 4 年付
  145. int32 pay_time_type = 11;
  146. // 1 整租 2 合租 3 转租
  147. int32 rent_type = 12;
  148. // 1 全部 2 主卧 3 次卧
  149. int32 room_type = 13;
  150. // 房间面积
  151. double room_area = 14;
  152. // 月租
  153. int64 rent_price = 15;
  154. // 押金
  155. int64 desposit = 16;
  156. // 可入住时间
  157. int64 in_time = 17;
  158. // 服务费
  159. int64 service_price = 18;
  160. // 中介费
  161. int64 intermediary_price = 19;
  162. // 基础设施
  163. int64 base_conf = 20;
  164. // 特色配置
  165. int64 special_conf = 21;
  166. // 简介
  167. string desc = 22;
  168. // 房屋图片
  169. repeated string house_pic = 23;
  170. // 房屋证件图片
  171. repeated string cert_pic = 24;
  172. // 业主uid
  173. int64 household_uid = 25;
  174. // 是否有电梯
  175. bool has_lift = 26;
  176. // 是否直接通过审核
  177. bool approve = 27;
  178. // 小区id
  179. int64 garden_id = 28;
  180. // 纬度
  181. double lat = 29;
  182. // 经度
  183. double lnt = 30;
  184. }
  185. message HouseRentApplyReply {
  186. int64 id = 1;
  187. }
  188. message HouseRentUpdateRequest {
  189. // 房屋号
  190. int64 house_id = 1;
  191. // 楼层
  192. int64 layer = 2;
  193. // 房屋建筑面积
  194. double house_area = 3;
  195. // 朝向
  196. int32 direction = 4;
  197. // 几室
  198. int64 room_count = 5;
  199. // 几厅
  200. int64 hall_count = 6;
  201. // 几卫
  202. int64 wc_count = 7;
  203. // 1 精装 2 简装 3 清水
  204. int32 decorating = 8;
  205. // 联系人
  206. string contacter = 9;
  207. // 联系人电话
  208. string contact_phone = 10;
  209. // 1 月付 2 季付 3 半年付 4 年付
  210. int32 pay_time_type = 11;
  211. // 1 整租 2 合租 3 转租
  212. int32 rent_type = 12;
  213. // 1 全部 2 主卧 3 次卧
  214. int32 room_type = 13;
  215. // 房间面积
  216. double room_area = 14;
  217. // 月租
  218. int64 rent_price = 15;
  219. // 押金
  220. int64 desposit = 16;
  221. // 可入住时间
  222. int64 in_time = 17;
  223. // 服务费
  224. int64 service_price = 18;
  225. // 中介费
  226. int64 intermediary_price = 19;
  227. // 基础设施
  228. int64 base_conf = 20;
  229. // 特色配置
  230. int64 special_conf = 21;
  231. // 简介
  232. string desc = 22;
  233. // 房屋图片
  234. repeated string house_pic = 23;
  235. // 房屋证件图片
  236. repeated string cert_pic = 24;
  237. // 是否有电梯
  238. bool has_lift = 25;
  239. int64 garden_id = 26;
  240. int64 id = 27;
  241. // 纬度
  242. double lat = 28;
  243. // 经度
  244. double lnt = 30;
  245. }
  246. message HouseRentUpdateReply {
  247. }
  248. message HouseRentApproveRequest {
  249. int64 id = 1;
  250. int64 garden_id = 2;
  251. bool status = 3;
  252. string feedback = 4;
  253. }
  254. message HouseRentApproveReply {
  255. }
  256. message HouseRentDownRequest {
  257. int64 id = 1;
  258. int64 garden_id = 2;
  259. }
  260. message HouseRentDownReply {
  261. }
  262. message HouseRentListRequest {
  263. int64 garden_id = 1;
  264. string province_code = 2;
  265. string city_code = 3;
  266. string area_code = 4;
  267. string street_code = 5;
  268. int64 room_count = 6;
  269. int64 hall_count = 7;
  270. int64 wc_count = 8;
  271. int64 household_uid = 9;
  272. int64 rent_price_greater = 10;
  273. int64 rent_price_less = 11;
  274. int64 approve_status = 12;
  275. int64 page = 13;
  276. int64 page_size = 14;
  277. int64 base_conf = 15;
  278. int64 special_conf = 16;
  279. }
  280. message HouseRentItem {
  281. // 房屋号
  282. string house_name = 1;
  283. // 楼层
  284. int64 layer = 2;
  285. // 房屋建筑面积
  286. double house_area = 3;
  287. // 朝向
  288. int32 direction = 4;
  289. // 几室
  290. int64 room_count = 5;
  291. // 几厅
  292. int64 hall_count = 6;
  293. // 几卫
  294. int64 wc_count = 7;
  295. // 1 精装 2 简装 3 清水
  296. int32 decorating = 8;
  297. // 联系人
  298. string contacter = 9;
  299. // 联系人电话
  300. string contact_phone = 10;
  301. // 1 月付 2 季付 3 半年付 4 年付
  302. int32 pay_time_type = 11;
  303. // 1 整租 2 合租 3 转租
  304. int32 rent_type = 12;
  305. // 1 全部 2 主卧 3 次卧
  306. int32 room_type = 13;
  307. // 房间面积
  308. double room_area = 14;
  309. // 月租
  310. int64 rent_price = 15;
  311. // 押金
  312. int64 desposit = 16;
  313. // 可入住时间
  314. int64 in_time = 17;
  315. // 服务费
  316. int64 service_price = 18;
  317. // 中介费
  318. int64 intermediary_price = 19;
  319. // 基础设施
  320. int64 base_conf = 20;
  321. // 特色配置
  322. int64 special_conf = 21;
  323. // 简介
  324. string desc = 22;
  325. // 房屋图片
  326. repeated string house_pic = 23;
  327. // 房屋证件图片
  328. repeated string cert_pic = 24;
  329. // 是否有电梯
  330. bool has_lift = 25;
  331. // 小区id
  332. int64 garden_id = 26;
  333. // 租房id
  334. int64 id = 27;
  335. // 审核状态 1 待审 2 通过 3 未通过
  336. int32 approve_status = 28;
  337. // 省份
  338. string province = 29;
  339. // 城市
  340. string city = 30;
  341. // 区域
  342. string area = 31;
  343. // 街道
  344. string street = 32;
  345. // 小区名称
  346. string garden_name = 33;
  347. // 纬度
  348. double lat = 34;
  349. // 经度
  350. double lnt = 35;
  351. string addr = 36;
  352. int64 house_id = 37;
  353. }
  354. message HouseRentListReply {
  355. int64 page = 1;
  356. int64 total = 2;
  357. repeated HouseRentItem list = 3;
  358. }
  359. message GardenHouseRentListRequest {
  360. int64 garden_id = 1;
  361. string province_code = 2;
  362. string city_code = 3;
  363. string area_code = 4;
  364. string street_code = 5;
  365. int64 room_count = 6;
  366. int64 hall_count = 7;
  367. int64 wc_count = 8;
  368. int64 household_uid = 9;
  369. int64 rent_price_greater = 10;
  370. int64 rent_price_less = 11;
  371. int64 approve_status = 12;
  372. int64 page = 13;
  373. int64 page_size = 14;
  374. int64 base_conf = 15;
  375. int64 special_conf = 16;
  376. }
  377. message GardenHouseRentListReply {
  378. int64 page = 1;
  379. int64 total = 2;
  380. repeated HouseRentItem list = 3;
  381. }