system.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household/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. int32 pay_mode = 25;
  47. string mch_id = 26;
  48. }
  49. message GardenInfosReply {
  50. repeated GardenItem list = 1;
  51. }
  52. message GardenAddRequest {
  53. // 物业公司id
  54. int64 cid = 1;
  55. // 省
  56. string province = 2;
  57. string province_code = 3;
  58. // 市
  59. string city = 4;
  60. string city_code = 5;
  61. // 区
  62. string area = 6;
  63. string area_code = 7;
  64. // 街道
  65. string street = 8;
  66. string street_code = 9;
  67. // 社区
  68. string committee = 10;
  69. string committee_code = 11;
  70. // 小区名字
  71. string garden_name = 12;
  72. // 小区地址
  73. string garden_addr = 13;
  74. // 物业联系人
  75. string property_person = 14;
  76. // 物业联系人手机号
  77. string property_phone = 15;
  78. // 免费小区个数
  79. int32 free_garden_count = 16;
  80. string garden_pic = 17;
  81. string garden_desc = 18;
  82. }
  83. message GardenAddReply {
  84. int64 id = 1;
  85. }
  86. message GardenListRequest {
  87. int64 page = 1;
  88. int64 page_size = 2;
  89. int64 cid = 3;
  90. string committee_code = 4;
  91. }
  92. message GardenListReply {
  93. int64 page = 1;
  94. int64 total = 2;
  95. repeated GardenItem list = 3;
  96. }
  97. message GardenUpdateRequest {
  98. // id
  99. int64 id = 1;
  100. // 省
  101. string province = 2;
  102. string province_code = 3;
  103. // 市
  104. string city = 4;
  105. string city_code = 5;
  106. // 区
  107. string area = 6;
  108. string area_code = 7;
  109. // 街道
  110. string street = 8;
  111. string street_code = 9;
  112. // 社区
  113. string committee = 10;
  114. string committee_code = 11;
  115. // 小区名字
  116. string garden_name = 12;
  117. // 小区地址
  118. string garden_addr = 13;
  119. // 物业联系人
  120. string property_person = 14;
  121. // 物业联系人手机号
  122. string property_phone = 15;
  123. int64 cid = 16;
  124. string garden_pic = 17;
  125. string garden_desc = 18;
  126. }
  127. message GardenUpdateReply {
  128. GardenUpdateRequest origin = 1;
  129. }
  130. message GardenDelRequest {
  131. int64 id = 1;
  132. int64 cid = 2;
  133. }
  134. message GardenDelReply {
  135. GardenUpdateRequest origin = 1;
  136. }