organization.proto 21 KB

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