system.proto 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-gateway/pb/v1";
  6. message GardenInfosRequest {
  7. repeated int64 ids = 1;
  8. }
  9. message GardenItem {
  10. // 物业公司id
  11. int64 cid = 1;
  12. // 省
  13. string province = 2;
  14. string province_code = 3;
  15. // 市
  16. string city = 4;
  17. string city_code = 5;
  18. // 区
  19. string area = 6;
  20. string area_code = 7;
  21. // 街道
  22. string street = 8;
  23. string street_code = 9;
  24. // 社区
  25. string committee = 10;
  26. string committee_code = 11;
  27. // 小区名字
  28. string garden_name = 12;
  29. // 小区地址
  30. string garden_addr = 13;
  31. // 物业联系人
  32. string property_person = 14;
  33. // 物业联系人手机号
  34. string property_phone = 15;
  35. int64 id = 16;
  36. string garden_pic = 17;
  37. string garden_desc = 18;
  38. bool in_use = 19;
  39. // 经度
  40. double lnt = 20;
  41. // 纬度
  42. double lat = 21;
  43. repeated string appendix = 22;
  44. int32 status = 23;
  45. string feedback = 24;
  46. // 1塔楼 2 板楼 3 塔板结合 4 其他
  47. int32 building_type = 31;
  48. // 建成年份开始时间戳
  49. int64 building_start = 32;
  50. // 建成年份结束时间戳
  51. int64 building_end = 33;
  52. // 绿化率
  53. double green_percent = 34;
  54. // 容积率
  55. double area_percent = 35;
  56. // 车位配比
  57. string space_info = 36;
  58. // 占地面积
  59. double covered_area = 37;
  60. // 建筑面积
  61. double building_area = 38;
  62. // 小区图片
  63. repeated string garden_pics = 39;
  64. // 开发企业
  65. string building_company = 40;
  66. // 总户数
  67. int64 house_total = 41;
  68. // 固定车位数
  69. int64 space_total = 42;
  70. // 物业费开始,单位分
  71. int64 property_fee_start = 43;
  72. // 物业费结束, 单位分
  73. int64 property_fee_end = 44;
  74. // 水费类型多选 1 民用 2 商用
  75. repeated int32 water_type = 45;
  76. // 电费类型多选 1 民用 2 商用
  77. repeated int32 electric_type = 46;
  78. // 燃气费开始,单位分
  79. int64 gas_fee_start = 47;
  80. // 燃气费开始,单位分
  81. int64 gas_fee_end = 48;
  82. int64 avg_price = 49;
  83. int64 rent_count = 50;
  84. int64 sell_count = 51;
  85. int64 rent_avg_price = 52;
  86. }
  87. message GardenInfosReply {
  88. repeated GardenItem list = 1;
  89. }
  90. message GardenListRequest {
  91. int64 page = 1;
  92. int64 page_size = 2;
  93. int64 cid = 3;
  94. string committee_code = 4;
  95. bool need_appendix = 5;
  96. bool not_approved = 6;
  97. string street_code = 7;
  98. string garden_name = 8;
  99. int32 approve_status = 9;
  100. int64 building_year_greater = 10;
  101. int64 building_year_less = 11;
  102. int32 building_type = 12;
  103. int64 price_greater = 13;
  104. int64 price_less = 14;
  105. string area_code = 15;
  106. string city_code = 16;
  107. string province_code = 18;
  108. bool management = 19;
  109. bool household = 20;
  110. }
  111. message GardenListReply {
  112. int64 page = 1;
  113. int64 total = 2;
  114. repeated GardenItem list = 3;
  115. }
  116. message GardenIdInfo {
  117. int64 garden_id = 1;
  118. string garden_name = 2;
  119. }
  120. message GardenIdsRequest {
  121. string garden_name = 1;
  122. int64 building_year_greater = 3;
  123. int64 building_year_less = 4;
  124. int32 building_type = 5;
  125. }
  126. message GardenIdsReply {
  127. repeated GardenIdInfo garden_ids = 1;
  128. }