common.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-company-gateway/pb/v1";
  6. message SystemPermissionAddRequest {
  7. // 父code,若没有则填空
  8. string pcode = 1;
  9. // 方法
  10. int32 method = 2;
  11. // 权限名字
  12. string name = 3;
  13. // 该路由是否需要前端控制
  14. bool front = 4;
  15. // 路由
  16. string router = 5;
  17. }
  18. message SystemPermissionAddReply {
  19. string code = 1;
  20. }
  21. message SystemPermissionUpdateRequest {
  22. // 方法
  23. int32 method = 2;
  24. // 权限名字
  25. string name = 3;
  26. // 该路由是否需要前端控制
  27. bool front = 4;
  28. // 路由
  29. string router = 5;
  30. string code = 6;
  31. }
  32. message SystemPermissionUpdateReply {
  33. }
  34. message SystemPermissionDelRequest {
  35. string code = 1;
  36. }
  37. message SystemPermissionDelReply {
  38. }
  39. message SystemPermissionListRequest {
  40. }
  41. message SystemPermissionItem {
  42. // 父code,若没有则填空
  43. string pcode = 1;
  44. // 方法
  45. int32 method = 2;
  46. // 权限名字
  47. string name = 3;
  48. // 该路由是否需要前端控制
  49. bool front = 4;
  50. // 路由
  51. string router = 5;
  52. string code = 6;
  53. repeated SystemPermissionItem childs = 7;
  54. }
  55. message SystemPermissionListReply {
  56. repeated SystemPermissionItem list = 1;
  57. }
  58. message ProvinceCityAreaRequest {
  59. }
  60. message ProvinceData {
  61. string code = 1;
  62. string name = 2;
  63. }
  64. message CityData {
  65. string code = 1;
  66. string name = 2;
  67. string province_code = 3;
  68. }
  69. message AreaData {
  70. string code = 1;
  71. string name = 2;
  72. string province_code = 3;
  73. string city_code = 4;
  74. }
  75. message ProvinceCityAreaReply {
  76. repeated ProvinceData province_list = 1;
  77. repeated CityData city_list = 2;
  78. repeated AreaData area_list = 3;
  79. }
  80. message StreetCommitteeRequest {
  81. string area_code = 1;
  82. }
  83. message StreetData {
  84. string code = 1;
  85. string name = 2;
  86. }
  87. message CommitteeData {
  88. string code = 1;
  89. string name = 2;
  90. string street_code = 3;
  91. }
  92. message StreetCommitteeReply {
  93. repeated StreetData street_list = 1;
  94. repeated CommitteeData committee_list = 2;
  95. }
  96. message ApplicationListRequest {
  97. int64 page = 1;
  98. int64 page_size = 2;
  99. int32 enable = 3;
  100. int64 package_id = 4;
  101. repeated int64 exclude_ids = 5;
  102. }
  103. message ApplicationItem {
  104. string icon = 1;
  105. string desc = 2;
  106. string name = 3;
  107. string content = 4;
  108. int64 price = 5;
  109. bool enable = 6;
  110. int64 id = 7;
  111. }
  112. message ApplicationListReply {
  113. int64 total = 1;
  114. int64 page = 2;
  115. repeated ApplicationItem list = 3;
  116. }
  117. message PackageItem {
  118. string name = 1;
  119. string desc = 2;
  120. // 单价
  121. int64 price = 3;
  122. int64 house_count = 4;
  123. int64 id = 5;
  124. bool enable = 6;
  125. // 应用名称
  126. repeated string application_names = 7;
  127. }
  128. message PackageListRequest {
  129. int64 page = 1;
  130. int64 page_size = 2;
  131. int32 enable = 3;
  132. }
  133. message PackageListReply {
  134. int64 page = 1;
  135. int64 total = 2;
  136. repeated PackageItem list = 3;
  137. }