project.proto 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "smart-enterprise-management-gateway/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 ProjectItem {
  37. string name = 1;
  38. string safety_record_no = 2;
  39. string project_leader = 3;
  40. string phone = 4;
  41. string location = 5;
  42. int64 id = 6;
  43. string project_no = 7;
  44. 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. bool is_finish = 23;
  60. string create_time = 24;
  61. string start_day = 25;
  62. string end_day = 26;
  63. string project_effect_pic = 27;
  64. }
  65. message ProjectListRequest {
  66. int32 page = 1;
  67. string filter = 2;
  68. repeated int32 filter_status = 3;
  69. int64 cid = 4;
  70. int32 page_size = 5;
  71. }
  72. message ProjectListReply {
  73. int64 total = 1;
  74. int32 page = 2;
  75. int32 page_size = 3;
  76. repeated ProjectItem list = 4;
  77. }
  78. message ProjectUserListRequest {
  79. string filter = 1;
  80. int64 cid = 2;
  81. int32 page = 3;
  82. }
  83. message ProjectUserItem {
  84. int64 id = 1;
  85. string username = 2;
  86. string passwd = 3;
  87. string project_name = 4;
  88. string safety_record_no = 5;
  89. bool enable = 6;
  90. int32 user_type = 7;
  91. }
  92. message ProjectUserListReply {
  93. int64 total = 1;
  94. int32 page = 2;
  95. int32 page_size = 3;
  96. repeated ProjectUserItem list = 4;
  97. }
  98. message EnableProjectUserRequest {
  99. int64 id = 1;
  100. bool enable = 2;
  101. }
  102. message EnableProjectUserReply {
  103. int64 project_id = 1;
  104. }
  105. message ProjectUserPasswordResetRequest {
  106. int64 id = 2;
  107. string password = 1;
  108. }
  109. message ProjectUserPasswordResetReply {
  110. }
  111. message ProjectDistrictRequest {
  112. }
  113. message ProjectDistrictZone {
  114. int64 id = 1;
  115. string addr = 2;
  116. }
  117. message ProjectDistrictCity {
  118. int64 id = 1;
  119. string addr = 2;
  120. repeated ProjectDistrictZone list = 4;
  121. }
  122. message ProjectDistrictProvince {
  123. int64 id = 1;
  124. string addr = 2;
  125. repeated ProjectDistrictCity list = 3;
  126. }
  127. message ProjectDistrictReply {
  128. repeated ProjectDistrictProvince list = 1;
  129. }
  130. message ProjectUpdateRequest {
  131. int64 id = 1;
  132. string name = 2;
  133. string location = 3;
  134. string safety_record_no = 4;
  135. string project_leader = 5;
  136. string phone = 6;
  137. string project_no = 7;
  138. repeated string project_plan = 8;
  139. string project_function = 9;
  140. string project_type = 10;
  141. double price = 11;
  142. string desc = 12;
  143. double covered_area = 13;
  144. int32 total_level = 14;
  145. string building_storey = 15;
  146. string construction = 16;
  147. string development = 17;
  148. string oversee = 18;
  149. string design = 19;
  150. string exploration = 20;
  151. double lon = 21;
  152. double lat = 22;
  153. repeated string project_effect_pic = 23;
  154. int64 start_day = 24;
  155. int64 end_day = 25;
  156. }
  157. message ProjectUpdateReply {
  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. }