household.proto 9.8 KB

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