organization.proto 21 KB

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