system.proto 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-garden/pb/v1";
  6. message LoginRequest {
  7. string username = 1;
  8. string password = 2;
  9. }
  10. message LoginReply {
  11. int64 uid = 1;
  12. }
  13. message UserAddRequest {
  14. string user_name = 1;
  15. string password = 2;
  16. string email = 3;
  17. string phone = 4;
  18. int64 group_id = 5;
  19. bool enable = 6;
  20. int64 garden_id = 7;
  21. int64 cid = 8;
  22. string garden_name = 9;
  23. }
  24. message UserAddReply {
  25. int64 id = 1;
  26. }
  27. message UserUpdateRequest {
  28. string user_name = 1;
  29. string password = 2;
  30. string email = 3;
  31. string phone = 4;
  32. bool enable = 5;
  33. int64 id = 6;
  34. int64 garden_id = 7;
  35. int64 cid = 8;
  36. string garden_name = 9;
  37. int64 group_id = 10;
  38. }
  39. message UserUpdateReply {
  40. }
  41. message UserDelRequest {
  42. int64 id = 1;
  43. }
  44. message UserDelReply {
  45. }
  46. message GroupAddRequest {
  47. int64 garden_id = 1;
  48. int64 cid = 2;
  49. repeated int64 permission_codes = 3;
  50. bool is_super = 4;
  51. }
  52. message GroupAddReply {
  53. int64 id = 1;
  54. }
  55. message UserListRequest {
  56. int64 cid = 1;
  57. int64 garden_id = 2;
  58. int64 page = 3;
  59. int64 page_size = 4;
  60. string garden_name = 5;
  61. string user_name = 6;
  62. bool by_company = 7;
  63. int64 group_id = 8;
  64. string phone = 9;
  65. repeated int64 ids = 10;
  66. }
  67. message UserItem {
  68. string user_name = 1;
  69. string password = 2;
  70. string email = 3;
  71. string phone = 4;
  72. bool super = 5;
  73. bool enable = 6;
  74. int64 id = 7;
  75. int64 garden_id = 8;
  76. int64 cid = 9;
  77. string garden_name = 10;
  78. string created_at = 11;
  79. int64 group_id = 12;
  80. string group_name = 13;
  81. string department_name = 14;
  82. string real_name = 15;
  83. int32 base_permission = 16;
  84. string openim_id = 17;
  85. }
  86. message UserListReply {
  87. int64 total = 1;
  88. int64 page = 2;
  89. repeated UserItem list = 3;
  90. }
  91. message SuperGroupRequest {
  92. int64 cid = 1;
  93. int64 garden_id = 2;
  94. }
  95. message SuperGroupReply {
  96. int64 id = 1;
  97. }
  98. message UserGardenChangeRequest {
  99. int64 garden_id = 1;
  100. string garden_name = 2;
  101. }
  102. message UserGardenChangeReply {
  103. }
  104. message GardenInfosRequest {
  105. repeated int64 ids = 1;
  106. }
  107. message GardenItem {
  108. // 物业公司id
  109. int64 cid = 1;
  110. // 省
  111. string province = 2;
  112. string province_code = 3;
  113. // 市
  114. string city = 4;
  115. string city_code = 5;
  116. // 区
  117. string area = 6;
  118. string area_code = 7;
  119. // 街道
  120. string street = 8;
  121. string street_code = 9;
  122. // 社区
  123. string committee = 10;
  124. string committee_code = 11;
  125. // 小区名字
  126. string garden_name = 12;
  127. // 小区地址
  128. string garden_addr = 13;
  129. // 物业联系人
  130. string property_person = 14;
  131. // 物业联系人手机号
  132. string property_phone = 15;
  133. int64 id = 16;
  134. string garden_pic = 17;
  135. string garden_desc = 18;
  136. bool in_use = 19;
  137. // 经度
  138. double lnt = 20;
  139. // 纬度
  140. double lat = 21;
  141. repeated string appendix = 22;
  142. int32 status = 23;
  143. string feedback = 24;
  144. int32 pay_mode = 25;
  145. string mch_id = 26;
  146. int64 house_count_limit = 27;
  147. int64 house_count = 28;
  148. }
  149. message GardenInfosReply {
  150. repeated GardenItem list = 1;
  151. }
  152. message GardenHouseCountChangeRequest {
  153. int64 garden_id = 1;
  154. int64 count = 2;
  155. }
  156. message GardenHouseCountChangeReply {
  157. }
  158. message GardenHouseCountLimitRequest {
  159. int64 garden_id = 1;
  160. }
  161. message GardenHouseCountLimitReply {
  162. int64 house_count = 1;
  163. int64 house_count_limit = 2;
  164. }
  165. message GardenRentSellCountRequest {
  166. int64 garden_id = 1;
  167. int64 rent_increase = 2;
  168. int64 sell_increase = 3;
  169. }
  170. message GardenRentSellCountReply {
  171. }
  172. message MsgPackageOrderListRequest {
  173. int64 garden_id = 1;
  174. bool management = 2;
  175. int64 page = 3;
  176. int64 page_size = 4;
  177. bool available = 5;
  178. int64 status = 6;
  179. }
  180. message MsgPackageOrderItem {
  181. int64 order_id = 1;
  182. string name = 2;
  183. string comment = 3;
  184. // 套餐短信条数
  185. int64 msg_count = 4;
  186. // 订单套餐短信总条数
  187. int64 msg_total_count = 5;
  188. // 订单套餐短信剩余条数
  189. int64 msg_available_count = 6;
  190. int64 package_id = 7;
  191. // 订单包含的套餐个数
  192. int64 package_count = 8;
  193. int64 created_at = 9;
  194. // 套餐单价
  195. int64 price = 10;
  196. // 订单总价
  197. int64 amount = 11;
  198. // 1 待审核 2 通过 3 未通过
  199. int32 status = 12;
  200. string garden_name = 13;
  201. int64 garden_id = 14;
  202. string feedback = 15;
  203. }
  204. message MsgPackageOrderListReply{
  205. int64 page = 1;
  206. int64 total = 2;
  207. repeated MsgPackageOrderItem list = 3;
  208. }
  209. message MsgPackageOrderDecreaseRequest {
  210. int64 order_id = 1;
  211. int64 garden_id = 2;
  212. int64 count = 3;
  213. }
  214. message MsgPackageOrderDecreaseReply {
  215. }