household.proto 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household/pb/v1";
  6. message LoginRequest {
  7. string phone_encrypt = 1;
  8. string user_encrypt = 2;
  9. string phone_iv = 3;
  10. string user_iv = 4;
  11. string code = 5;
  12. }
  13. message HouseholdHouseInfo {
  14. int64 garden_id = 1;
  15. string garden_name = 2;
  16. int64 house_id = 3;
  17. string house_name = 4;
  18. int64 id = 5;
  19. // 住户在该房屋下的类型 1 业主 2 家人 3 租客
  20. int32 user_type = 6;
  21. bool can_pay = 7;
  22. }
  23. message LoginReply {
  24. string phone = 1;
  25. int64 uid = 2;
  26. string nick_name = 3;
  27. string open_id = 4;
  28. string real_name = 5;
  29. string avatar = 6;
  30. repeated HouseholdHouseInfo list = 7;
  31. string openim_id = 8;
  32. string id_number = 9;
  33. }
  34. message HouseholdApplyRequest {
  35. int64 uid = 1;
  36. // 1业主 2家人 3租客
  37. int32 user_type = 2;
  38. string phone = 3;
  39. string name = 4;
  40. int64 house_id = 5;
  41. // 1 身份证 2 护照
  42. int32 id_type = 6;
  43. // 证件号
  44. string id_number = 7;
  45. repeated string appendix = 8;
  46. int64 garden_id = 9;
  47. }
  48. message HouseholdApplyReply {
  49. int64 id = 1;
  50. }
  51. message HouseholdApproveRequest {
  52. int64 id = 1;
  53. bool status = 2;
  54. string feedback = 3;
  55. }
  56. message HouseholdApproveReply {
  57. }
  58. message HouseholdRefuseRequest {
  59. int64 house_id = 1;
  60. int64 garden_id = 2;
  61. int64 unit_id = 3;
  62. int64 building_id = 4;
  63. string feedback = 5;
  64. }
  65. message HouseholdRefuseReply {
  66. }
  67. message HouseholdListRequest {
  68. int64 garden_id = 1;
  69. int64 uid = 2;
  70. int64 page = 3;
  71. int64 page_size = 4;
  72. int32 approve_status = 5;
  73. int32 user_type = 6;
  74. string name = 7;
  75. }
  76. message HouseholdItem {
  77. int64 id = 1;
  78. // 1业主 2家人 3租客
  79. int32 user_type = 2;
  80. string phone = 3;
  81. string name = 4;
  82. repeated string appendix = 5;
  83. // 1 身份证 2 护照
  84. int32 id_type = 6;
  85. // 证件号
  86. string id_number = 7;
  87. // 房号
  88. string house_name = 8;
  89. int32 approve_status = 9;
  90. string garden_name = 10;
  91. int64 house_id = 11;
  92. int64 garden_id = 12;
  93. int64 uid = 13;
  94. }
  95. message HouseholdListReply {
  96. int64 page = 1;
  97. int64 total = 2;
  98. repeated HouseholdItem list = 3;
  99. }
  100. message RealNameAuthRequest {
  101. int64 uid = 1;
  102. string real_name = 2;
  103. string id_number = 3;
  104. int32 id_type = 4;
  105. }
  106. message RealNameAuthReply {
  107. }
  108. message UserUpdateNickNameRequest {
  109. int64 uid = 1;
  110. string nick_name = 2;
  111. }
  112. message UserUpdateNickNameReply {
  113. }
  114. // 删除未审核的申请(小区被删,房屋被删,或房屋号信息被改)
  115. message HouseholdDelApplyRequest {
  116. int64 id = 1;
  117. int64 house_id = 2;
  118. int64 garden_id = 3;
  119. int64 building_id = 4;
  120. int64 unit_id = 5;
  121. }
  122. message HouseholdDelApplyReply {
  123. }
  124. message HouseholdGardenNameChangeRequest {
  125. int64 garden_id = 1;
  126. string garden_name = 2;
  127. }
  128. message HouseholdGardenNameChangeReply {
  129. }
  130. message UserInfoRequest {
  131. int64 uid = 1;
  132. }
  133. message UserInfoReply {
  134. string real_name = 1;
  135. int32 id_type = 2;
  136. string id_number = 3;
  137. }
  138. message HouseholdUserListRequest {
  139. int64 page = 1;
  140. int64 page_size = 2;
  141. int64 garden_id = 3;
  142. int32 user_type = 6;
  143. string name = 7;
  144. }
  145. message HouseholdUserItem {
  146. int64 id = 1;
  147. // 1业主 2家人 3租客
  148. int32 user_type = 2;
  149. string phone = 3;
  150. string name = 4;
  151. // 1 身份证 2 护照
  152. int32 id_type = 5;
  153. // 证件号
  154. string id_number = 6;
  155. string garden_name = 7;
  156. }
  157. message HouseholdUserListReply {
  158. int64 page = 1;
  159. int64 total = 2;
  160. repeated HouseholdUserItem list = 3;
  161. }
  162. message HouseholdHousesRequest {
  163. int64 uid = 1;
  164. bool for_rent = 2;
  165. }
  166. message HouseholdHousesReply {
  167. repeated HouseholdHouseInfo list = 1;
  168. }
  169. message HouseRentBaseConf {
  170. // 床
  171. bool bed = 1;
  172. // 天然气
  173. bool gas = 2;
  174. // 暖气
  175. bool warm_gas = 3;
  176. // 宽带
  177. bool broadband = 4;
  178. // 冰箱
  179. bool refragerator = 5;
  180. // 衣柜
  181. bool wardobe = 6;
  182. // 沙发
  183. bool sofa = 7;
  184. // 空调
  185. bool aircondition = 8;
  186. // 电视机
  187. bool tv = 9;
  188. // 热水器
  189. bool heater = 10;
  190. // 洗衣机
  191. bool warshing = 11;
  192. }
  193. message HouseRentSpecialConf {
  194. // 智能门锁
  195. bool intelligent_lock = 1;
  196. // wifi
  197. bool wifi = 2;
  198. // 近地铁
  199. bool metro = 3;
  200. // 停车位
  201. bool park_space = 4;
  202. // 独卫
  203. bool independent_wc = 5;
  204. // 私人阳台
  205. bool private_balcony = 6;
  206. // 首次出租
  207. bool first_rent = 7;
  208. }
  209. message HouseRentApplyRequest {
  210. // 房屋id
  211. int64 house_id = 1;
  212. // 楼层
  213. int64 layer = 2;
  214. // 房屋建筑面积
  215. double house_area = 3;
  216. // 朝向
  217. int32 direction = 4;
  218. // 几室
  219. int64 room_count = 5;
  220. // 几厅
  221. int64 hall_count = 6;
  222. // 几卫
  223. int64 wc_count = 7;
  224. // 1 精装 2 简装 3 清水
  225. int32 decorating = 8;
  226. // 联系人
  227. string contacter = 9;
  228. // 联系人电话
  229. string contact_phone = 10;
  230. // 1 月付 2 季付 3 半年付 4 年付
  231. int32 pay_time_type = 11;
  232. // 1 整租 2 合租 3 转租
  233. int32 rent_type = 12;
  234. // 1 全部 2 主卧 3 次卧
  235. int32 room_type = 13;
  236. // 房间面积
  237. double room_area = 14;
  238. // 月租
  239. int64 rent_price = 15;
  240. // 押金
  241. int64 desposit = 16;
  242. // 可入住时间
  243. int64 in_time = 17;
  244. // 服务费
  245. int64 service_price = 18;
  246. // 中介费
  247. int64 intermediary_price = 19;
  248. // 基础设施
  249. int64 base_conf = 20;
  250. // 特色配置
  251. int64 special_conf = 21;
  252. // 简介
  253. string desc = 22;
  254. // 房屋图片
  255. repeated string house_pic = 23;
  256. // 房屋证件图片
  257. repeated string cert_pic = 24;
  258. // 业主uid
  259. int64 household_uid = 25;
  260. // 是否有电梯
  261. bool has_lift = 26;
  262. // 是否直接通过审核
  263. bool approve = 27;
  264. // 小区id
  265. int64 garden_id = 28;
  266. // 纬度
  267. double lat = 29;
  268. // 经度
  269. double lnt = 30;
  270. }
  271. message HouseRentApplyReply {
  272. int64 id = 1;
  273. }
  274. message HouseRentUpdateRequest {
  275. int64 house_id = 1;
  276. // 楼层
  277. int64 layer = 2;
  278. // 房屋建筑面积
  279. double house_area = 3;
  280. // 朝向
  281. int32 direction = 4;
  282. // 几室
  283. int64 room_count = 5;
  284. // 几厅
  285. int64 hall_count = 6;
  286. // 几卫
  287. int64 wc_count = 7;
  288. // 1 精装 2 简装 3 清水
  289. int32 decorating = 8;
  290. // 联系人
  291. string contacter = 9;
  292. // 联系人电话
  293. string contact_phone = 10;
  294. // 1 月付 2 季付 3 半年付 4 年付
  295. int32 pay_time_type = 11;
  296. // 1 整租 2 合租 3 转租
  297. int32 rent_type = 12;
  298. // 1 全部 2 主卧 3 次卧
  299. int32 room_type = 13;
  300. // 房间面积
  301. double room_area = 14;
  302. // 月租
  303. int64 rent_price = 15;
  304. // 押金
  305. int64 desposit = 16;
  306. // 可入住时间
  307. int64 in_time = 17;
  308. // 服务费
  309. int64 service_price = 18;
  310. // 中介费
  311. int64 intermediary_price = 19;
  312. // 基础设施
  313. int64 base_conf = 20;
  314. // 特色配置
  315. int64 special_conf = 21;
  316. // 简介
  317. string desc = 22;
  318. // 房屋图片
  319. repeated string house_pic = 23;
  320. // 房屋证件图片
  321. repeated string cert_pic = 24;
  322. // 是否有电梯
  323. bool has_lift = 25;
  324. int64 garden_id = 26;
  325. int64 id = 27;
  326. // 纬度
  327. double lat = 28;
  328. // 经度
  329. double lnt = 30;
  330. }
  331. message HouseRentUpdateReply {
  332. }
  333. message HouseRentApproveRequest {
  334. int64 id = 1;
  335. int64 garden_id = 2;
  336. bool status = 3;
  337. string feedback = 4;
  338. }
  339. message HouseRentApproveReply {
  340. }
  341. message HouseRentDownRequest {
  342. int64 id = 1;
  343. int64 garden_id = 2;
  344. }
  345. message HouseRentDownReply {
  346. }
  347. message HouseRentListRequest {
  348. int64 garden_id = 1;
  349. string province_code = 2;
  350. string city_code = 3;
  351. string area_code = 4;
  352. string street_code = 5;
  353. int64 room_count = 6;
  354. int64 hall_count = 7;
  355. int64 wc_count = 8;
  356. int64 household_uid = 9;
  357. int64 rent_price_greater = 10;
  358. int64 rent_price_less = 11;
  359. int64 approve_status = 12;
  360. int64 page = 13;
  361. int64 page_size = 14;
  362. int64 base_conf = 15;
  363. int64 special_conf = 16;
  364. repeated int64 garden_ids = 17;
  365. }
  366. message HouseRentItem {
  367. // 房屋号
  368. string house_name = 1;
  369. // 楼层
  370. int64 layer = 2;
  371. // 房屋建筑面积
  372. double house_area = 3;
  373. // 朝向
  374. int32 direction = 4;
  375. // 几室
  376. int64 room_count = 5;
  377. // 几厅
  378. int64 hall_count = 6;
  379. // 几卫
  380. int64 wc_count = 7;
  381. // 1 精装 2 简装 3 清水
  382. int32 decorating = 8;
  383. // 联系人
  384. string contacter = 9;
  385. // 联系人电话
  386. string contact_phone = 10;
  387. // 1 月付 2 季付 3 半年付 4 年付
  388. int32 pay_time_type = 11;
  389. // 1 整租 2 合租 3 转租
  390. int32 rent_type = 12;
  391. // 1 全部 2 主卧 3 次卧
  392. int32 room_type = 13;
  393. // 房间面积
  394. double room_area = 14;
  395. // 月租
  396. int64 rent_price = 15;
  397. // 押金
  398. int64 desposit = 16;
  399. // 可入住时间
  400. int64 in_time = 17;
  401. // 服务费
  402. int64 service_price = 18;
  403. // 中介费
  404. int64 intermediary_price = 19;
  405. // 基础设施
  406. int64 base_conf = 20;
  407. // 特色配置
  408. int64 special_conf = 21;
  409. // 简介
  410. string desc = 22;
  411. // 房屋图片
  412. repeated string house_pic = 23;
  413. // 房屋证件图片
  414. repeated string cert_pic = 24;
  415. // 是否有电梯
  416. bool has_lift = 25;
  417. // 小区id
  418. int64 garden_id = 26;
  419. // 租房id
  420. int64 id = 27;
  421. // 审核状态 1 待审 2 通过 3 未通过 4 已下架
  422. int32 approve_status = 28;
  423. // 省份
  424. string province = 29;
  425. // 城市
  426. string city = 30;
  427. // 区域
  428. string area = 31;
  429. // 街道
  430. string street = 32;
  431. // 小区名称
  432. string garden_name = 33;
  433. // 纬度
  434. double lat = 34;
  435. // 经度
  436. double lnt = 35;
  437. string addr = 36;
  438. int64 house_id = 37;
  439. string garden_desc = 38;
  440. int64 household_uid = 39;
  441. string real_name = 40;
  442. string phone = 41;
  443. }
  444. message HouseRentListReply {
  445. int64 page = 1;
  446. int64 total = 2;
  447. repeated HouseRentItem list = 3;
  448. }
  449. message GardenHouseRentListRequest {
  450. int64 garden_id = 1;
  451. string province_code = 2;
  452. string city_code = 3;
  453. string area_code = 4;
  454. string street_code = 5;
  455. int64 room_count = 6;
  456. int64 hall_count = 7;
  457. int64 wc_count = 8;
  458. int64 household_uid = 9;
  459. int64 rent_price_greater = 10;
  460. int64 rent_price_less = 11;
  461. int64 approve_status = 12;
  462. int64 page = 13;
  463. int64 page_size = 14;
  464. int64 base_conf = 15;
  465. int64 special_conf = 16;
  466. }
  467. message GardenHouseRentListReply {
  468. int64 page = 1;
  469. int64 total = 2;
  470. repeated HouseRentItem list = 3;
  471. }
  472. message HouseRentChangeFieldRequest {
  473. int64 garden_id = 1;
  474. int64 house_id = 2;
  475. int64 unit_id = 3;
  476. int64 room_count = 4;
  477. int64 hall_count = 5;
  478. bool has_lift = 6;
  479. double house_area = 7;
  480. int64 layer = 8;
  481. string garden_name = 9;
  482. double lnt = 10;
  483. double lat = 11;
  484. }
  485. message HouseRentChangeFieldReply {
  486. }
  487. message HouseholdWaitCountRequest {
  488. int64 garden_id = 1;
  489. int64 building_id = 2;
  490. int64 unit_id = 3;
  491. int64 house_id = 4;
  492. }
  493. message HouseholdWaitCountReply {
  494. int64 count = 1;
  495. }
  496. message UserWxPublicAddRequest {
  497. string open_id = 1;
  498. string union_id = 2;
  499. }
  500. message UserWxPublicAddReply {
  501. }
  502. message WxPublicEmptyUnionIdRequest {
  503. }
  504. message WxPublicEmptyUnionIdReply {
  505. }
  506. message GateQcodeRequest {
  507. bool visitor = 1;
  508. int64 garden_id = 2;
  509. int64 device_id = 3;
  510. int64 visitor_start = 4;
  511. int64 visitor_end = 5;
  512. int64 uid = 6;
  513. string visitor_phone = 7;
  514. string visitor_name = 8;
  515. string user_name = 9;
  516. string phone = 10;
  517. string comment = 11;
  518. }
  519. message GateQcodeReply {
  520. string qcode = 1;
  521. int64 id = 2;
  522. }
  523. message HouseholdDelHouseRequest {
  524. int64 house_id = 1;
  525. int64 household_uid = 2;
  526. int64 garden_id = 3;
  527. repeated int64 rent_ids = 4;
  528. }
  529. message HouseholdDelHouseReply {
  530. }
  531. message HouseRentAppointmentAddRequest {
  532. int64 garden_id = 1;
  533. int64 uid = 2;
  534. int64 rent_id = 3;
  535. string name = 4;
  536. string phone = 5;
  537. int32 gender = 6;
  538. int64 appointment_time = 7;
  539. }
  540. message HouseRentAppointmentAddReply {
  541. int64 id = 1;
  542. }
  543. message HouseRentAppointmentDelRequest {
  544. int64 garden_id = 1;
  545. int64 id = 2;
  546. repeated int64 rent_ids = 3;
  547. }
  548. message HouseRentAppointmentDelReply {
  549. }
  550. message HouseRentAppointmentListRequest {
  551. int64 garden_id = 1;
  552. int64 rent_id = 2;
  553. int64 uid = 3;
  554. int64 page = 4;
  555. int64 page_size = 5;
  556. string house_name = 6;
  557. string phone = 7;
  558. string name = 8;
  559. }
  560. message HouseRentAppointmentItem {
  561. int64 id = 1;
  562. int64 uid = 2;
  563. int64 rent_id = 3;
  564. string name = 4;
  565. string phone = 5;
  566. int32 gender = 6;
  567. int64 appointment_time = 7;
  568. string house_name = 8;
  569. double area = 9;
  570. int64 layer = 10;
  571. // 1 待受理,2 已受理,3 已拒绝,4 未到访,5已到访,6已过期
  572. int32 status = 11;
  573. string garden_name = 12;
  574. int64 garden_id = 13;
  575. }
  576. message HouseRentAppointmentListReply {
  577. int64 page = 1;
  578. int64 total = 2;
  579. repeated HouseRentAppointmentItem list = 3;
  580. }
  581. message HouseRentAppointmentStatusRequest {
  582. int64 id = 1;
  583. //2 已受理,3 已拒绝,4 未到访,5已到访
  584. int32 status = 2;
  585. int64 garden_id = 3;
  586. string feedback = 4;
  587. }
  588. message HouseRentAppointmentStatusReply {
  589. }