provincial.proto 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "smart-supplier-management/pb/v1";
  6. message ProvincialGetProjectCodeRequest {
  7. int32 category = 1;
  8. string name = 2;
  9. string area_code = 3;
  10. }
  11. message ProvincialGetProjectCodeReply {
  12. string code = 1;
  13. }
  14. message ProvincialPostProjectRequest {
  15. string project_code = 1;
  16. string project_name = 2;
  17. string project_category = 3;
  18. string owner_name = 4;
  19. string build_corporation_code= 5;
  20. string area_code = 6;
  21. string address = 7;
  22. string invest = 8;
  23. string prj_size = 9;
  24. string start_date = 10;
  25. string complete_date = 11;
  26. string prj_status = 12;
  27. int32 construct_type = 13;
  28. int32 invest_type = 14;
  29. double building_area = 15;
  30. string scale = 16;
  31. }
  32. message ProvincialPostProjectReply {
  33. string id = 1;
  34. }
  35. message ProvincialPostDustDeviceRequest {
  36. string code = 1;
  37. string name = 2;
  38. string device_name = 3;
  39. string device_id = 4;
  40. string manufacturer = 5;
  41. string batch = 6;
  42. string unit = 7;
  43. string device_model = 8;
  44. }
  45. message ProvincialPostDustDeviceReply {
  46. string id = 1;
  47. }
  48. message ProvincialDustData {
  49. string code = 1;
  50. string name = 2;
  51. string device_id = 3;
  52. string monitoring_time = 4;
  53. string save_time = 5;
  54. double pm10_value = 6;
  55. double pm25_value = 7;
  56. double voice = 8;
  57. int32 spray_status=9;
  58. int32 type = 10;
  59. }
  60. message ProvincialPostDustDataRequest {
  61. repeated ProvincialDustData Datas = 1;
  62. }
  63. message ProvincialPostDustDataReply {
  64. string id = 1;
  65. }
  66. message ProvincialVerifyDataRequest {
  67. string id = 1;
  68. }
  69. message ProvincialVerifyDataReply {
  70. int32 state = 1;
  71. int32 result = 2;
  72. string all_message = 3;
  73. }
  74. message ProvincialPostTeamRequest {
  75. string code = 1;
  76. int64 team_sys_no = 2;
  77. string corp_code = 3;
  78. string corp_name = 4;
  79. string team_name = 5;
  80. string team_leader_name = 6;
  81. string team_leader_phone = 7;
  82. }
  83. message ProvincialPostTeamReply {
  84. string id = 1;
  85. }
  86. message ProvincialPostStaffRequest {
  87. string code = 1;
  88. int64 team_sys_no = 2;
  89. string corp_code = 3;
  90. string corp_name = 4;
  91. string team_name = 5;
  92. string worker_name = 6;
  93. string is_team_leader = 7;
  94. int32 id_card_type = 8;
  95. string id_card_number = 9;
  96. int32 age = 10;
  97. string gender = 11;
  98. string nation = 12;
  99. string address = 13;
  100. string head_image = 14;
  101. int32 politics_type = 15;
  102. int32 culture_level_type = 16;
  103. string grant_org = 17;
  104. string work_type = 18;
  105. string native_place = 19;
  106. string mobile = 20;
  107. string has_contract = 21;
  108. }
  109. message ProvincialPostStaffReply {
  110. string id = 1;
  111. }
  112. message ProvincialPostStaffAttendanceRequest {
  113. string code = 1;
  114. int64 team_sys_no = 2;
  115. string team_name = 3;
  116. string worker_name = 4;
  117. int32 id_card_type = 5;
  118. string id_card_number = 6;
  119. string date = 7;
  120. int32 direction = 8;
  121. }
  122. message ProvincialPostStaffAttendanceReply {
  123. string id = 1;
  124. }