project.proto 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "smart-enterprise-management/pb/v1";
  6. message ProjectAddRequest {
  7. int64 company_id = 1;
  8. string name = 2;
  9. string location = 3;
  10. string safety_record_no = 4;
  11. string project_leader = 5;
  12. string phone = 6;
  13. string project_no = 7;
  14. repeated string project_plan = 8;
  15. string project_function = 9;
  16. string project_type = 10;
  17. double price = 11;
  18. string desc = 12;
  19. double covered_area = 13;
  20. int32 total_level = 14;
  21. string building_storey = 15;
  22. string construction = 16;
  23. string development = 17;
  24. string oversee = 18;
  25. string design = 19;
  26. string exploration = 20;
  27. double lon = 21;
  28. double lat = 22;
  29. repeated string project_effect_pic = 23;
  30. int64 start_day = 24;
  31. int64 end_day = 25;
  32. }
  33. message ProjectAddReply {
  34. int64 id = 1;
  35. }
  36. message ProjectUpdateRequest {
  37. int64 id = 1;
  38. string name = 2;
  39. string location = 3;
  40. string safety_record_no = 4;
  41. string project_leader = 5;
  42. string phone = 6;
  43. string project_no = 7;
  44. repeated string project_plan = 8;
  45. string project_function = 9;
  46. string project_type = 10;
  47. double price = 11;
  48. string desc = 12;
  49. double covered_area = 13;
  50. int32 total_level = 14;
  51. string building_storey = 15;
  52. string construction = 16;
  53. string development = 17;
  54. string oversee = 18;
  55. string design = 19;
  56. string exploration = 20;
  57. double lon = 21;
  58. double lat = 22;
  59. repeated string project_effect_pic = 23;
  60. int64 start_day = 24;
  61. int64 end_day = 25;
  62. }
  63. message ProjectUpdateReply {
  64. }
  65. message ProjectItem {
  66. string name = 1;
  67. string safety_record_no = 2;
  68. string project_leader = 3;
  69. string phone = 4;
  70. string location = 5;
  71. int64 id = 6;
  72. string project_no = 7;
  73. string project_plan = 8;
  74. string project_function = 9;
  75. string project_type = 10;
  76. double price = 11;
  77. string desc = 12;
  78. double covered_area = 13;
  79. int32 total_level = 14;
  80. string building_storey = 15;
  81. string construction = 16;
  82. string development = 17;
  83. string oversee = 18;
  84. string design = 19;
  85. string exploration = 20;
  86. double lon = 21;
  87. double lat = 22;
  88. bool is_finish = 23;
  89. string create_time = 24;
  90. string start_day = 25;
  91. string end_day = 26;
  92. string project_effect_pic = 27;
  93. }
  94. message ProjectListRequest {
  95. int32 page = 1;
  96. string filter = 2;
  97. repeated int32 filter_status = 3;
  98. int64 cid = 4;
  99. int32 page_size = 5;
  100. }
  101. message ProjectListReply {
  102. int64 total = 1;
  103. int32 page = 2;
  104. int32 page_size = 3;
  105. repeated ProjectItem list = 4;
  106. }
  107. message ProjectUserListRequest {
  108. string filter = 1;
  109. int64 cid = 2;
  110. int32 page = 3;
  111. }
  112. message ProjectUserItem {
  113. int64 id = 1;
  114. string username = 2;
  115. string passwd = 3;
  116. string project_name = 4;
  117. string safety_record_no = 5;
  118. bool enable = 6;
  119. int32 user_type = 7;
  120. }
  121. message ProjectUserListReply {
  122. int64 total = 1;
  123. int32 page = 2;
  124. int32 page_size = 3;
  125. repeated ProjectUserItem list = 4;
  126. }
  127. message EnableProjectUserRequest {
  128. int64 id = 1;
  129. bool enable = 2;
  130. }
  131. message EnableProjectUserReply {
  132. int64 project_id = 1;
  133. }
  134. message ProjectUserPasswordResetRequest {
  135. int64 id = 2;
  136. string password = 1;
  137. }
  138. message ProjectUserPasswordResetReply {
  139. }
  140. message ProjectDistrictRequest {
  141. }
  142. message ProjectDistrictZone {
  143. int64 id = 1;
  144. string addr = 2;
  145. }
  146. message ProjectDistrictCity {
  147. int64 id = 1;
  148. string addr = 2;
  149. repeated ProjectDistrictZone list = 4;
  150. }
  151. message ProjectDistrictProvince {
  152. int64 id = 1;
  153. string addr = 2;
  154. repeated ProjectDistrictCity list = 3;
  155. }
  156. message ProjectDistrictReply {
  157. repeated ProjectDistrictProvince list = 1;
  158. }
  159. message ProjectInfoRequest {
  160. int64 id = 1;
  161. }
  162. message ProjectInfoReply {
  163. ProjectItem info = 1;
  164. }
  165. message ProjectDelRequest {
  166. int64 id = 1;
  167. }
  168. message ProjectDelReply {
  169. string origin = 1;
  170. }
  171. message ProjectFinishRequest {
  172. int64 id = 1;
  173. }
  174. message ProjectFinishReply {
  175. }