house_rent.proto 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-garden/pb/v1";
  6. message GardenHouseRentSyncRequest {
  7. bool insert = 1;
  8. int64 garden_id = 2;
  9. bytes datas = 3;
  10. int64 increase = 4;
  11. }
  12. message GardenHouseRentSyncReply {
  13. }
  14. message HouseRentBaseConf {
  15. // 床
  16. bool bed = 1;
  17. // 天然气
  18. bool gas = 2;
  19. // 暖气
  20. bool warm_gas = 3;
  21. // 宽带
  22. bool broadband = 4;
  23. // 冰箱
  24. bool refragerator = 5;
  25. // 衣柜
  26. bool wardobe = 6;
  27. // 沙发
  28. bool sofa = 7;
  29. // 空调
  30. bool aircondition = 8;
  31. // 电视机
  32. bool tv = 9;
  33. // 热水器
  34. bool heater = 10;
  35. // 洗衣机
  36. bool warshing = 11;
  37. }
  38. message HouseRentSpecialConf {
  39. // 智能门锁
  40. bool intelligent_lock = 1;
  41. // wifi
  42. bool wifi = 2;
  43. // 近地铁
  44. bool metro = 3;
  45. // 停车位
  46. bool park_space = 4;
  47. // 独卫
  48. bool independent_wc = 5;
  49. // 私人阳台
  50. bool private_balcony = 6;
  51. // 首次出租
  52. bool first_rent = 7;
  53. }
  54. message GardenHouseRentListRequest {
  55. int64 garden_id = 1;
  56. string province_code = 2;
  57. string city_code = 3;
  58. string area_code = 4;
  59. string street_code = 5;
  60. int64 room_count = 6;
  61. int64 hall_count = 7;
  62. int64 wc_count = 8;
  63. int64 household_uid = 9;
  64. int64 rent_price_greater = 10;
  65. int64 rent_price_less = 11;
  66. int64 approve_status = 12;
  67. int64 page = 13;
  68. int64 page_size = 14;
  69. int64 base_conf = 15;
  70. int64 special_conf = 16;
  71. string contacter = 17;
  72. string contacter_phone = 18;
  73. }
  74. message HouseRentItem {
  75. string house_name = 1;
  76. int64 layer = 2;
  77. double house_area = 3;
  78. int32 direction = 4;
  79. int64 room_count = 5;
  80. int64 hall_count = 6;
  81. int64 wc_count = 7;
  82. int32 decorating = 8;
  83. string contacter = 9;
  84. string contact_phone = 10;
  85. int32 pay_time_type = 11;
  86. int32 rent_type = 12;
  87. int32 room_type = 13;
  88. double room_area = 14;
  89. int64 rent_price = 15;
  90. int64 desposit = 16;
  91. int64 in_time = 17;
  92. int64 service_price = 18;
  93. int64 intermediary_price = 19;
  94. int64 base_conf = 20;
  95. int64 special_conf = 21;
  96. string desc = 22;
  97. repeated string house_pic = 23;
  98. repeated string cert_pic = 24;
  99. bool has_lift = 25;
  100. int64 garden_id = 26;
  101. int64 id = 27;
  102. int32 approve_status = 28;
  103. string province = 29;
  104. string city = 30;
  105. string area = 31;
  106. string street = 32;
  107. string garden_name = 33;
  108. // 纬度
  109. double lat = 34;
  110. // 经度
  111. double lnt = 35;
  112. string addr = 36;
  113. int64 house_id = 37;
  114. string garden_desc = 38;
  115. int64 household_uid = 39;
  116. string real_name = 40;
  117. string phone = 41;
  118. }
  119. message GardenHouseRentListReply {
  120. int64 page = 1;
  121. int64 total = 2;
  122. repeated HouseRentItem list = 3;
  123. }
  124. message HouseRentAddManagerRequest {
  125. int64 garden_id = 1;
  126. int64 manager_uid = 2;
  127. int64 rent_id = 3;
  128. }
  129. message HouseRentAddManagerReply {
  130. int64 id = 1;
  131. }
  132. message HouseRentDelManagerRequest {
  133. int64 garden_id = 1;
  134. int64 id = 2;
  135. }
  136. message HouseRentDelManagerReply {
  137. }
  138. message HouseRentManagerListRequest {
  139. int64 garden_id = 1;
  140. int64 rent_id = 4;
  141. }
  142. message HouseRentManagerItem {
  143. int64 id = 1;
  144. int64 manager_uid = 2;
  145. // 姓名
  146. string name = 3;
  147. string phone = 4;
  148. // 账号
  149. string user_name = 5;
  150. string openim_id = 6;
  151. }
  152. message HouseRentManagerListReply {
  153. repeated HouseRentManagerItem list = 1;
  154. }
  155. message GardenHouseRentInfoRequest {
  156. int64 garden_id = 1;
  157. }
  158. message GardenHouseRentInfoReply {
  159. int64 avg_price = 1;
  160. int64 rent_count = 2;
  161. int64 sell_count = 3;
  162. }