organization.proto 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. syntax = "proto3";
  2. package pb;
  3. option go_package = "./pb";
  4. message DcWorkingReq{
  5. int64 project_id = 1;
  6. string device_code = 2;
  7. string stime = 3; // c_time的搜索
  8. string etime = 4; // c_time的搜索
  9. int64 page = 5;
  10. int64 page_size = 6;
  11. string order = 7; // 排序字段及方向 例: id desc
  12. }
  13. message WorkingMf{
  14. // @gotags: json:"id"
  15. int64 id = 1;
  16. // @gotags: json:"project_id"
  17. int64 project_id = 2;
  18. // @gotags: json:"device_code"
  19. string device_code = 3;
  20. // @gotags: json:"water_temperature"
  21. double water_temperature = 4; // 水温 摄氏度
  22. // @gotags: json:"feed_flow"
  23. double feed_flow = 5; // 进水流量
  24. // @gotags: json:"con_flow"
  25. double con_flow = 6; // 浓水流量
  26. // @gotags: json:"product_flow"
  27. double product_flow = 7; // 产水流量
  28. // @gotags: json:"feed_pressure"
  29. double feed_pressure = 8; // 进水压力
  30. // @gotags: json:"con_pressure"
  31. double con_pressure = 9; // 浓水压力
  32. // @gotags: json:"product_pressure"
  33. double product_pressure = 10; // 产水压力
  34. // @gotags: json:"tmp"
  35. double tmp = 11; // 跨膜压差
  36. // @gotags: json:"flux"
  37. double flux = 12; // 膜通量
  38. // @gotags: json:"feed_wq_turbidity"
  39. double feed_wq_turbidity = 13; // 进水浊度
  40. // @gotags: json:"feed_wq_ph"
  41. int64 feed_wq_ph = 14; // 进水 PH 值
  42. // @gotags: json:"product_wq_ph"
  43. int64 product_wq_ph = 15; // 产水 PH 值
  44. // @gotags: json:"feed_wq_al"
  45. double feed_wq_al = 16; // 进水水质:铝
  46. // @gotags: json:"product_wq_al"
  47. double product_wq_al = 17; // 产水水质:铝
  48. // @gotags: json:"feed_wq_fe"
  49. double feed_wq_fe = 18; // 进水水质:铁
  50. // @gotags: json:"product_wq_fe"
  51. double product_wq_fe = 19; // 产水水质:铁
  52. // @gotags: json:"feed_wq_mn"
  53. double feed_wq_mn = 20; // 进水水质:锰
  54. // @gotags: json:"product_wq_mn"
  55. double product_wq_mn = 21; // 产水水质:锰
  56. // @gotags: json:"feed_wq_sio2"
  57. double feed_wq_sio2 = 22; // 进水水质:二氧化硅
  58. // @gotags: json:"product_wq_sio2"
  59. double product_wq_sio2 = 23; // 产水水质:二氧化硅
  60. // @gotags: json:"feed_wq_cod"
  61. double feed_wq_cod = 24; // 进水水质:COD
  62. // @gotags: json:"product_wq_cod"
  63. double product_wq_cod = 25; // 产水水质:COD
  64. // @gotags: json:"feed_wq_p"
  65. double feed_wq_p = 26; // 进水水质:磷
  66. // @gotags: json:"product_wq_p"
  67. double product_wq_p = 27; // 产水水质:磷
  68. // @gotags: json:"step"
  69. int64 step = 28; // 设备当前步序值
  70. // @gotags: json:"c_time"
  71. string c_time = 29;
  72. }
  73. message WorkingUf{
  74. // @gotags: json:"id"
  75. int64 id = 1;
  76. // @gotags: json:"project_id"
  77. int64 project_id = 2;
  78. // @gotags: json:"device_code"
  79. string device_code = 3;
  80. // @gotags: json:"water_temperature"
  81. double water_temperature = 4; // 水温 摄氏度
  82. // @gotags: json:"feed_flow"
  83. double feed_flow = 5; // 进水流量
  84. // @gotags: json:"con_flow"
  85. double con_flow = 6; // 浓水流量
  86. // @gotags: json:"product_flow"
  87. double product_flow = 7; // 产水流量
  88. // @gotags: json:"feed_pressure"
  89. double feed_pressure = 8; // 进水压力
  90. // @gotags: json:"con_pressure"
  91. double con_pressure = 9; // 浓水压力
  92. // @gotags: json:"product_pressure"
  93. double product_pressure = 10; // 产水压力
  94. // @gotags: json:"tmp"
  95. double tmp = 11; // 跨膜压差
  96. // @gotags: json:"flux"
  97. double flux = 12; // 膜通量
  98. // @gotags: json:"feed_wq_turbidity"
  99. double feed_wq_turbidity = 13; // 进水浊度
  100. // @gotags: json:"feed_wq_ph"
  101. int64 feed_wq_ph = 14; // 进水 PH 值
  102. // @gotags: json:"product_wq_ph"
  103. int64 product_wq_ph = 15; // 产水 PH 值
  104. // @gotags: json:"feed_wq_al"
  105. double feed_wq_al = 16; // 进水水质:铝
  106. // @gotags: json:"product_wq_al"
  107. double product_wq_al = 17; // 产水水质:铝
  108. // @gotags: json:"feed_wq_fe"
  109. double feed_wq_fe = 18; // 进水水质:铁
  110. // @gotags: json:"product_wq_fe"
  111. double product_wq_fe = 19; // 产水水质:铁
  112. // @gotags: json:"feed_wq_mn"
  113. double feed_wq_mn = 20; // 进水水质:锰
  114. // @gotags: json:"product_wq_mn"
  115. double product_wq_mn = 21; // 产水水质:锰
  116. // @gotags: json:"feed_wq_sio2"
  117. double feed_wq_sio2 = 22; // 进水水质:二氧化硅
  118. // @gotags: json:"product_wq_sio2"
  119. double product_wq_sio2 = 23; // 产水水质:二氧化硅
  120. // @gotags: json:"feed_wq_cod"
  121. double feed_wq_cod = 24; // 进水水质:COD
  122. // @gotags: json:"product_wq_cod"
  123. double product_wq_cod = 25; // 产水水质:COD
  124. // @gotags: json:"feed_wq_p"
  125. double feed_wq_p = 26; // 进水水质:磷
  126. // @gotags: json:"product_wq_p"
  127. double product_wq_p = 27; // 产水水质:磷
  128. // @gotags: json:"step"
  129. int64 step = 28; // 设备当前步序值
  130. // @gotags: json:"c_time"
  131. string c_time = 29;
  132. }
  133. message WorkingNf{
  134. // gotags: json:"id"
  135. int64 id = 1;
  136. // gotags: json:"project_id"
  137. int64 project_id = 2;
  138. // gotags: json:"device_code"
  139. string device_code = 3;
  140. // gotags: json:"water_temperature"
  141. double water_temperature = 4; // 水温 摄氏度
  142. // gotags: json:"feed_flow_1st"
  143. double feed_flow_1st = 5; // 一段进水流量
  144. // gotags: json:"con_flow_1st"
  145. double con_flow_1st = 6; // 一段浓水流量
  146. // gotags: json:"product_flow_1st"
  147. double product_flow_1st = 7; // 一段产水流量
  148. // gotags: json:"feed_pressure_1st"
  149. double feed_pressure_1st = 8; // 一段进水压力
  150. // gotags: json:"con_pressure_1st"
  151. double con_pressure_1st = 9; // 一段浓水压力
  152. // gotags: json:"product_pressure_1st"
  153. double product_pressure_1st = 10; // 一段产水压力
  154. // gotags: json:"tmp_1st"
  155. double tmp_1st = 11; // 一段跨膜压差
  156. // gotags: json:"flux_1st"
  157. double flux_1st = 12; // 一段膜通量
  158. // gotags: json:"permeability_1st"
  159. double permeability_1st = 13; // 一段渗透率
  160. // gotags: json:"feed_flow_2nd"
  161. double feed_flow_2nd = 14; // 二段进水流量
  162. // gotags: json:"con_flow_2nd"
  163. double con_flow_2nd = 15; // 二段浓水流量
  164. // gotags: json:"product_flow_2nd"
  165. double product_flow_2nd = 16; // 二段产水流量
  166. // gotags: json:"feed_pressure_2nd"
  167. double feed_pressure_2nd = 17; // 二段进水压力
  168. // gotags: json:"con_pressure_2nd"
  169. double con_pressure_2nd = 18; // 二段浓水压力
  170. // gotags: json:"product_pressure_2nd"
  171. double product_pressure_2nd = 19; // 二段产水压力
  172. // gotags: json:"tmp_2nd"
  173. double tmp_2nd = 20; // 二段压差
  174. // gotags: json:"flux_2nd"
  175. double flux_2nd = 21; // 二段通量
  176. // gotags: json:"permeability_2nd"
  177. double permeability_2nd = 22; // 二段渗透率
  178. // gotags: json:"feed_flow_3th"
  179. double feed_flow_3th = 23; // 三段进水流量
  180. // gotags: json:"con_flow_3th"
  181. double con_flow_3th = 24; // 三段浓水流量
  182. // gotags: json:"product_flow_3th"
  183. double product_flow_3th = 25; // 三段产水流量
  184. // gotags: json:"feed_pressure_3th"
  185. double feed_pressure_3th = 26; // 三段进水压力
  186. // gotags: json:"con_pressure_3th"
  187. double con_pressure_3th = 27; // 三段浓水压力
  188. // gotags: json:"product_pressure_3th"
  189. double product_pressure_3th = 28; // 三段产水压力
  190. // gotags: json:"tmp_3th"
  191. double tmp_3th = 29; // 三段压差
  192. // gotags: json:"flux_3th"
  193. double flux_3th = 30; // 三段通量
  194. // gotags: json:"permeability_3th"
  195. double permeability_3th = 31; // 三段渗透率
  196. // gotags: json:"feed_wq_turbidity"
  197. double feed_wq_turbidity = 32; // 进水浊度
  198. // gotags: json:"feed_wq_ph"
  199. int64 feed_wq_ph = 33; // 进水 PH 值
  200. // gotags: json:"product_wq_ph"
  201. int64 product_wq_ph = 34; // 产水 PH 值
  202. // gotags: json:"feed_wq_al"
  203. double feed_wq_al = 35; // 进水水质:铝
  204. // gotags: json:"product_wq_al"
  205. double product_wq_al = 36; // 产水水质:铝
  206. // gotags: json:"feed_wq_fe"
  207. double feed_wq_fe = 37; // 进水水质:铁
  208. // gotags: json:"product_wq_fe"
  209. double product_wq_fe = 38; // 产水水质:铁
  210. // gotags: json:"feed_wq_mn"
  211. double feed_wq_mn = 39; // 进水水质:锰
  212. // gotags: json:"product_wq_mn"
  213. double product_wq_mn = 40; // 产水水质:锰
  214. // gotags: json:"feed_wq_sio2"
  215. double feed_wq_sio2 = 41; // 进水水质:二氧化硅
  216. // gotags: json:"product_wq_sio2"
  217. double product_wq_sio2 = 42; // 产水水质:二氧化硅
  218. // gotags: json:"feed_wq_cod"
  219. double feed_wq_cod = 43; // 进水水质:COD
  220. // gotags: json:"product_wq_cod"
  221. double product_wq_cod = 44; // 产水水质:COD
  222. // gotags: json:"feed_wq_p"
  223. double feed_wq_p = 45; // 进水水质:磷
  224. // gotags: json:"product_wq_p"
  225. double product_wq_p = 46; // 产水水质:磷
  226. // gotags: json:"step"
  227. int64 step = 47; // 设备当前步序值
  228. // gotags: json:"c_time"
  229. string c_time = 48;
  230. }
  231. message WorkingRo{
  232. // gotags: json:"id"
  233. int64 id = 1;
  234. // gotags: json:"project_id"
  235. int64 project_id = 2;
  236. // gotags: json:"device_code"
  237. string device_code = 3;
  238. // gotags: json:"water_temperature"
  239. double water_temperature = 4; // 水温 摄氏度
  240. // gotags: json:"feed_flow_1st"
  241. double feed_flow_1st = 5; // 一段进水流量
  242. // gotags: json:"con_flow_1st"
  243. double con_flow_1st = 6; // 一段浓水流量
  244. // gotags: json:"product_flow_1st"
  245. double product_flow_1st = 7; // 一段产水流量
  246. // gotags: json:"feed_pressure_1st"
  247. double feed_pressure_1st = 8; // 一段进水压力
  248. // gotags: json:"con_pressure_1st"
  249. double con_pressure_1st = 9; // 一段浓水压力
  250. // gotags: json:"product_pressure_1st"
  251. double product_pressure_1st = 10; // 一段产水压力
  252. // gotags: json:"tmp_1st"
  253. double tmp_1st = 11; // 一段跨膜压差
  254. // gotags: json:"flux_1st"
  255. double flux_1st = 12; // 一段膜通量
  256. // gotags: json:"permeability_1st"
  257. double permeability_1st = 13; // 一段渗透率
  258. // gotags: json:"feed_flow_2nd"
  259. double feed_flow_2nd = 14; // 二段进水流量
  260. // gotags: json:"con_flow_2nd"
  261. double con_flow_2nd = 15; // 二段浓水流量
  262. // gotags: json:"product_flow_2nd"
  263. double product_flow_2nd = 16; // 二段产水流量
  264. // gotags: json:"feed_pressure_2nd"
  265. double feed_pressure_2nd = 17; // 二段进水压力
  266. // gotags: json:"con_pressure_2nd"
  267. double con_pressure_2nd = 18; // 二段浓水压力
  268. // gotags: json:"product_pressure_2nd"
  269. double product_pressure_2nd = 19; // 二段产水压力
  270. // gotags: json:"tmp_2nd"
  271. double tmp_2nd = 20; // 二段压差
  272. // gotags: json:"flux_2nd"
  273. double flux_2nd = 21; // 二段通量
  274. // gotags: json:"permeability_2nd"
  275. double permeability_2nd = 22; // 二段渗透率
  276. // gotags: json:"feed_flow_3th"
  277. double feed_flow_3th = 23; // 三段进水流量
  278. // gotags: json:"con_flow_3th"
  279. double con_flow_3th = 24; // 三段浓水流量
  280. // gotags: json:"product_flow_3th"
  281. double product_flow_3th = 25; // 三段产水流量
  282. // gotags: json:"feed_pressure_3th"
  283. double feed_pressure_3th = 26; // 三段进水压力
  284. // gotags: json:"con_pressure_3th"
  285. double con_pressure_3th = 27; // 三段浓水压力
  286. // gotags: json:"product_pressure_3th"
  287. double product_pressure_3th = 28; // 三段产水压力
  288. // gotags: json:"tmp_3th"
  289. double tmp_3th = 29; // 三段压差
  290. // gotags: json:"flux_3th"
  291. double flux_3th = 30; // 三段通量
  292. // gotags: json:"permeability_3th"
  293. double permeability_3th = 31; // 三段渗透率
  294. // gotags: json:"feed_wq_turbidity"
  295. double feed_wq_turbidity = 32; // 进水浊度
  296. // gotags: json:"feed_wq_ph"
  297. int64 feed_wq_ph = 33; // 进水 PH 值
  298. // gotags: json:"product_wq_ph"
  299. int64 product_wq_ph = 34; // 产水 PH 值
  300. // gotags: json:"feed_wq_al"
  301. double feed_wq_al = 35; // 进水水质:铝
  302. // gotags: json:"product_wq_al"
  303. double product_wq_al = 36; // 产水水质:铝
  304. // gotags: json:"feed_wq_fe"
  305. double feed_wq_fe = 37; // 进水水质:铁
  306. // gotags: json:"product_wq_fe"
  307. double product_wq_fe = 38; // 产水水质:铁
  308. // gotags: json:"feed_wq_mn"
  309. double feed_wq_mn = 39; // 进水水质:锰
  310. // gotags: json:"product_wq_mn"
  311. double product_wq_mn = 40; // 产水水质:锰
  312. // gotags: json:"feed_wq_sio2"
  313. double feed_wq_sio2 = 41; // 进水水质:二氧化硅
  314. // gotags: json:"product_wq_sio2"
  315. double product_wq_sio2 = 42; // 产水水质:二氧化硅
  316. // gotags: json:"feed_wq_cod"
  317. double feed_wq_cod = 43; // 进水水质:COD
  318. // gotags: json:"product_wq_cod"
  319. double product_wq_cod = 44; // 产水水质:COD
  320. // gotags: json:"feed_wq_p"
  321. double feed_wq_p = 45; // 进水水质:磷
  322. // gotags: json:"product_wq_p"
  323. double product_wq_p = 46; // 产水水质:磷
  324. // gotags: json:"step"
  325. int64 step = 47; // 设备当前步序值
  326. // gotags: json:"c_time"
  327. string c_time = 48;
  328. }
  329. message WorkingChest {
  330. // @gotags: json:"id"
  331. int64 id = 1;
  332. // @gotags: json:"project_id"
  333. int64 project_id = 2;
  334. // @gotags: json:"device_code"
  335. string device_code = 3;
  336. // @gotags: json:"switch"
  337. int64 switch = 4; // 药箱液位开关 0: 关 1: 开
  338. // @gotags: json:"level"
  339. double level = 5; // 液位高度
  340. // @gotags: json:"agitator_status"
  341. int64 agitator_status = 6; // 搅拌器运行状态 0: 未运行 1:运行中
  342. // @gotags: json:"agitator_duration"
  343. int64 agitator_duration = 7; // 搅拌器运行时长
  344. // @gotags: json:"agitator_fault_status"
  345. int64 agitator_fault_status = 8; // 搅拌器故障状态 0:正常 1:故障
  346. // @gotags: json:"c_time"
  347. string c_time = 9;
  348. }
  349. message WorkingPump {
  350. // @gotags: json:"id"
  351. int64 id = 1;
  352. // @gotags: json:"project_id"
  353. int64 project_id = 2;
  354. // @gotags: json:"device_code"
  355. string device_code = 3;
  356. // @gotags: json:"feed_pressure"
  357. double feed_pressure = 4; // 进水压力
  358. // @gotags: json:"out_pressure"
  359. double out_pressure = 5; // 出水压力
  360. // @gotags: json:"duration"
  361. int64 duration = 6; // 运行时长 单位 s
  362. // @gotags: json:"current"
  363. double current = 7; // 运行电流
  364. // @gotags: json:"frequency"
  365. double frequency = 8; // 运行频率
  366. // @gotags: json:"lift"
  367. double lift = 9; // 工作扬程
  368. // @gotags: json:"efficiency"
  369. double efficiency = 10; // 运行效率
  370. // @gotags: json:"run_status"
  371. int64 run_status = 11; // 运行状态 0: 停机 1: 运行正常
  372. // @gotags: json:"fault_status"
  373. int64 fault_status = 12; // 故障状态 0: 正常 1: 故障
  374. // @gotags: json:"c_time"
  375. string c_time = 13;
  376. }
  377. message WorkingValve {
  378. // @gotags: json:"id"
  379. int64 id = 1;
  380. // @gotags: json:"project_id"
  381. int64 project_id = 2;
  382. // @gotags: json:"device_code"
  383. string device_code = 3;
  384. // @gotags: json:"adjust"
  385. int64 adjust = 4; // 是否为调节阀门 0: 否 1: 是
  386. // @gotags: json:"opening"
  387. double opening = 5; // 当前阀门的开度
  388. // @gotags: json:"closed"
  389. int64 closed = 6; // 关到位 全关 0: 否 1: 是
  390. // @gotags: json:"opened"
  391. int64 opened = 7; // 开到位 开到 设置的开度 0: 否 1: 是
  392. // @gotags: json:"fault_status"
  393. int64 fault_status = 8; // 是否故障 0: 否 1: 是
  394. // @gotags: json:"c_time"
  395. string c_time = 9;
  396. }
  397. message ItemHistoryData {
  398. // @gotags: json:"project_id"
  399. int64 project_id = 1;
  400. // @gotags: json:"item_name"
  401. string item_name = 2;
  402. // @gotags: json:"val"
  403. double val = 3;
  404. // @gotags: json:"h_time"
  405. string h_time = 4;
  406. }
  407. message MultiAddItemHistoryDataReq {
  408. // @gotags: json:"project_id"
  409. int64 project_id = 1;
  410. // @gotags: json:"list"
  411. repeated ItemHistoryData list = 2;
  412. }
  413. message MultiAddItemHistoryDataResp {}
  414. message ItemHistoryDataListReq {
  415. // @gotags: json:"project_id"
  416. int64 project_id = 1;
  417. // @gotags: json:"item_name"
  418. string item_name = 2;
  419. // @gotags: json:"interval"
  420. string interval = 3; //时间单位 s,minute,h,day
  421. // @gotags: json:"aggregator"
  422. string aggregator = 4; //聚合方式 min,max,avg,sum,realtime, new
  423. // @gotags: json:"stime"
  424. string stime = 5;
  425. // @gotags: json:"etime"
  426. string etime = 6;
  427. // @gotags: json:"size"
  428. int64 size = 7;
  429. }
  430. message ItemHistoryDataByTimeReq {
  431. // @gotags: json:"project_id"
  432. int64 project_id = 1;
  433. // @gotags: json:"item_name"
  434. string item_name = 2;
  435. // @gotags: json:"stime"
  436. string stime = 3;
  437. // @gotags: json:"etime"
  438. string etime = 4;
  439. }
  440. message ItemHistoryDataMaxMinResp {
  441. // @gotags: json:"max_val"
  442. double max_val = 1;
  443. // @gotags: json:"min_val"
  444. double min_val = 2;
  445. }
  446. message ItemHistoryDataFirstLastResp {
  447. // @gotags: json:"first"
  448. double first = 1;
  449. // @gotags: json:"last"
  450. double last = 2;
  451. }
  452. message ChangeTypeItemHistoryDataResp {
  453. // @gotags: json:"value"
  454. double value = 1;
  455. }
  456. message ItemHistoryDataList {
  457. // @gotags: json:"item_name"
  458. string item_name = 1;
  459. // @gotags: json:"val"
  460. double val = 2;
  461. // @gotags: json:"h_time"
  462. string h_time = 3;
  463. }
  464. message ItemHistoryDataListResp {
  465. // @gotags: json:"list"
  466. repeated ItemHistoryDataList list = 1;
  467. }
  468. message GetWorkingUfByCodeResp{
  469. // @gotags: json:"list"
  470. repeated WorkingUf list = 1;
  471. }
  472. message GetWorkingRoByCodeResp{
  473. // @gotags: json:"list"
  474. repeated WorkingRo list = 1;
  475. }
  476. message GetWorkingNfByCodeResp{
  477. // @gotags: json:"list"
  478. repeated WorkingNf list = 1;
  479. }
  480. message GetWorkingMfByCodeResp{
  481. // @gotags: json:"list"
  482. repeated WorkingMf list = 1;
  483. }
  484. message GetWorkingPumpByCodeResp{
  485. // @gotags: json:"list"
  486. repeated WorkingPump list = 1;
  487. }
  488. message GetWorkingValveByCodeResp{
  489. // @gotags: json:"list"
  490. repeated WorkingValve list = 1;
  491. }
  492. message GetWorkingChestByCodeResp{
  493. // @gotags: json:"list"
  494. repeated WorkingChest list = 1;
  495. }
  496. service Organization {
  497. rpc GetWorkingUfByCode(DcWorkingReq) returns(GetWorkingUfByCodeResp);
  498. rpc GetWorkingRoByCode(DcWorkingReq) returns(GetWorkingRoByCodeResp);
  499. rpc GetWorkingChestByCode(DcWorkingReq) returns(GetWorkingChestByCodeResp);
  500. rpc GetWorkingPumpByCode(DcWorkingReq) returns(GetWorkingPumpByCodeResp);
  501. rpc GetWorkingValveByCode(DcWorkingReq) returns(GetWorkingValveByCodeResp);
  502. rpc MultiAddItemHistoryData(MultiAddItemHistoryDataReq) returns(MultiAddItemHistoryDataResp);
  503. rpc ItemHistoryDataList(ItemHistoryDataListReq) returns(ItemHistoryDataListResp);
  504. rpc ItemHistoryDataByTime(ItemHistoryDataByTimeReq) returns(ItemHistoryDataListResp);
  505. rpc ItemHistoryDataMaxMinByTime(ItemHistoryDataByTimeReq) returns(ItemHistoryDataMaxMinResp);
  506. rpc ItemHistoryDataFirstLastByTime(ItemHistoryDataByTimeReq) returns(ItemHistoryDataFirstLastResp);
  507. rpc ChangeTypeItemHistoryData(ItemHistoryDataByTimeReq) returns(ChangeTypeItemHistoryDataResp);
  508. }