thirdparty.proto 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "access-control-monitor/pb/v1";
  6. message GetVcodeRequest{
  7. string phone_number = 1; // 电话号码
  8. }
  9. message GetVcodeReply{
  10. uint32 vcode = 1; // 验证码
  11. }
  12. message CheckVcodeRequest{
  13. string phone_number = 1; // 电话号码
  14. uint32 vcode = 2; // 验证码
  15. }
  16. message CheckVcodeReply{
  17. }
  18. message SendReserveRequest {
  19. string phone_number = 1;
  20. string services = 2;
  21. string times = 3;
  22. string shop = 4;
  23. string addr = 5;
  24. string service_phone = 6;
  25. string plate_no = 7;
  26. }
  27. message SendReserveReply {
  28. }
  29. message SendAlarmRequest{
  30. string phone_number = 1; // 电话号码
  31. // 邮件
  32. string email = 2;
  33. // 设备名(扬尘设备(扬尘0001))
  34. string device_name = 3;
  35. // 告警原因
  36. string alarm_reason = 4;
  37. // 告警时间
  38. string alarm_time = 5;
  39. }
  40. message SendAlarmReply{
  41. }
  42. // 发送通过认证短信
  43. message SendThroughVerifyRequest{
  44. // 公司名
  45. string company = 1;
  46. // 类型 1 供应商,2 企业
  47. int32 company_type = 2;
  48. string phone_number = 3;
  49. bool status = 4;
  50. string approve_time = 5;
  51. }
  52. message SendThroughVerifyReply{
  53. }
  54. message SendEmailRequest {
  55. string email = 1;
  56. string content = 2;
  57. }
  58. message SendEmailReply {
  59. }
  60. message WeatherConditionRequest{
  61. // 省市名(市为直辖市)
  62. string province = 1;
  63. // 地区
  64. string region = 2;
  65. }
  66. message WeatherConditionReply{
  67. string condition = 1;
  68. string condition_id = 2;
  69. string humidity = 3;
  70. string icon = 4;
  71. string pressure = 5;
  72. string real_feel = 6;
  73. string sun_rise = 7;
  74. string sun_set = 8;
  75. string temp = 9;
  76. string tips = 10;
  77. string updatetime = 11;
  78. string uvi = 12;
  79. string wind_dir = 13;
  80. string wind_level = 14;
  81. string wind_speed = 15;
  82. }
  83. message WeatherEnviromentRequest{
  84. // 省市名(市为直辖市)
  85. string province = 1;
  86. // 地区
  87. string region = 2;
  88. }
  89. message WeatherEnviromentReply{
  90. string city_name = 1;
  91. // 一氧化碳指数
  92. string co = 2;
  93. // 二氧化氮指数
  94. string no2= 3;
  95. // 臭氧指数
  96. string o3 = 4;
  97. // PM10指数
  98. string pm10 = 5;
  99. // PM2.5指数
  100. string pm25 = 6;
  101. // 全国排名
  102. string rank = 7;
  103. // 二氧化硫指数
  104. string so2 = 8;
  105. // 空气质量指数值
  106. string value = 9;
  107. }
  108. message WeatherForecast15Request{
  109. // 省市名(市为直辖市)
  110. string province = 1;
  111. // 地区
  112. string region = 2;
  113. }
  114. message WeatherForecast15{
  115. string condition_day = 1;
  116. string condition_id_day = 2;
  117. string condition_id_night = 3;
  118. string condition_night = 4;
  119. string moonphase = 5;
  120. string temp_day = 6;
  121. string temp_night = 7;
  122. string wind_dir_day = 8;
  123. string wind_dir_night = 9;
  124. string wind_level_day = 10;
  125. string wind_levelNight = 11;
  126. string wind_speed_day = 12;
  127. string wind_speed_night = 13;
  128. }
  129. message WeatherForecast15Reply{
  130. repeated WeatherForecast15 WeatherForecast15= 1;
  131. }
  132. message ProvincialGetProjectCodeRequest {
  133. int32 category = 1;
  134. string name = 2;
  135. string area_code = 3;
  136. }
  137. message ProvincialGetProjectCodeReply {
  138. string code = 1;
  139. }
  140. message ProvincialPostProjectRequest {
  141. string project_code = 1;
  142. string project_name = 2;
  143. string project_category = 3;
  144. string owner_name = 4;
  145. string build_corporation_code= 5;
  146. string area_code = 6;
  147. string address = 7;
  148. string invest = 8;
  149. string prj_size = 9;
  150. string start_date = 10;
  151. string complete_date = 11;
  152. string prj_status = 12;
  153. int32 construct_type = 13;
  154. int32 invest_type = 14;
  155. double building_area = 15;
  156. string scale = 16;
  157. }
  158. message ProvincialPostProjectReply {
  159. string id = 1;
  160. }
  161. message ProvincialPostDustDeviceRequest {
  162. string code = 1;
  163. string name = 2;
  164. string device_name = 3;
  165. string device_id = 4;
  166. string manufacturer = 5;
  167. string batch = 6;
  168. string unit = 7;
  169. string device_model = 8;
  170. }
  171. message ProvincialPostDustDeviceReply {
  172. string id = 1;
  173. }
  174. message ProvincialDustData {
  175. string code = 1;
  176. string name = 2;
  177. string device_id = 3;
  178. string monitoring_time = 4;
  179. string save_time = 5;
  180. double pm10_value = 6;
  181. double pm25_value = 7;
  182. double voice = 8;
  183. int32 spray_status=9;
  184. int32 type = 10;
  185. }
  186. message ProvincialPostDustDataRequest {
  187. repeated ProvincialDustData Datas = 1;
  188. }
  189. message ProvincialPostDustDataReply {
  190. string id = 1;
  191. }
  192. message ProvincialVerifyDataRequest {
  193. string id = 1;
  194. }
  195. message ProvincialVerifyDataReply {
  196. int32 state = 1;
  197. int32 result = 2;
  198. string all_message = 3;
  199. }
  200. message ProvincialPostTeamRequest {
  201. string code = 1;
  202. int64 team_sys_no = 2;
  203. string corp_code = 3;
  204. string corp_name = 4;
  205. string team_name = 5;
  206. string team_leader_name = 6;
  207. string team_leader_phone = 7;
  208. }
  209. message ProvincialPostTeamReply {
  210. string id = 1;
  211. }
  212. message ProvincialPostStaffRequest {
  213. string code = 1;
  214. int64 team_sys_no = 2;
  215. string corp_code = 3;
  216. string corp_name = 4;
  217. string team_name = 5;
  218. string worker_name = 6;
  219. string is_team_leader = 7;
  220. int32 id_card_type = 8;
  221. string id_card_number = 9;
  222. int32 age = 10;
  223. string gender = 11;
  224. string nation = 12;
  225. string address = 13;
  226. string head_image = 14;
  227. int32 politics_type = 15;
  228. int32 culture_level_type = 16;
  229. string grant_org = 17;
  230. string work_type = 18;
  231. string native_place = 19;
  232. string mobile = 20;
  233. string has_contract = 21;
  234. }
  235. message ProvincialPostStaffReply {
  236. string id = 1;
  237. }
  238. message ProvincialPostStaffAttendanceRequest {
  239. string code = 1;
  240. int64 team_sys_no = 2;
  241. string team_name = 3;
  242. string worker_name = 4;
  243. int32 id_card_type = 5;
  244. string id_card_number = 6;
  245. string date = 7;
  246. int32 direction = 8;
  247. }
  248. message ProvincialPostStaffAttendanceReply {
  249. string id = 1;
  250. }