household.proto 10 KB

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