123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- syntax = "v1"
- type DcWorkingUf{
- Id int64 `json:"id"`
- ProjectId int64 `json:"project_id"`
- DeviceCode string `json:"device_code"`
- WaterTemperature float64 `json:"water_temperature"` // 水温 摄氏度
- FeedFlow float64 `json:"feed_flow"` // 进水流量
- ConFlow float64 `json:"con_flow"` // 浓水流量
- ProductFlow float64 `json:"product_flow"` // 产水流量
- FeedPressure float64 `json:"feed_pressure"` // 进水压力
- ConPressure float64 `json:"con_pressure"` // 浓水压力
- ProductPressure float64 `json:"product_pressure"` // 产水压力
- Tmp float64 `json:"tmp"` // 跨膜压差
- Flux float64 `json:"flux"` // 膜通量
- FeedWqTurbidity float64 `json:"feed_wq_turbidity"` // 进水浊度
- FeedWqPh int64 `json:"feed_wq_ph"` // 进水 PH 值
- ProductWqPh int64 `json:"product_wq_ph"` // 产水 PH 值
- FeedWqAl float64 `json:"feed_wq_al"` // 进水水质:铝
- ProductWqAl float64 `json:"product_wq_al"` // 产水水质:铝
- FeedWqFe float64 `json:"feed_wq_fe"` // 进水水质:铁
- ProductWqFe float64 `json:"product_wq_fe"` // 产水水质:铁
- FeedWqMn float64 `json:"feed_wq_mn"` // 进水水质:锰
- ProductWqMn float64 `json:"product_wq_mn"` // 产水水质:锰
- FeedWqSio2 float64 `json:"feed_wq_sio2"` // 进水水质:二氧化硅
- ProductWqSio2 float64 `json:"product_wq_sio2"` // 产水水质:二氧化硅
- FeedWqCod float64 `json:"feed_wq_cod"` // 进水水质:COD
- ProductWqCod float64 `json:"product_wq_cod"` // 产水水质:COD
- FeedWqP float64 `json:"feed_wq_p"` // 进水水质:磷
- ProductWqP float64 `json:"product_wq_p"` // 产水水质:磷
- Step int64 `json:"step"` // 设备当前步序值
- CTime string `json:"c_time"`
- }
- type DcWorkingRo{
- Id int64 `json:"id"`
- ProjectId int64 `json:"project_id"`
- DeviceCode string `json:"device_code"`
- WaterTemperature float64 `json:"water_temperature"` // 水温 摄氏度
- FeedFlow1St float64 `json:"feed_flow_1st"` // 一段进水流量
- ConFlow1St float64 `json:"con_flow_1st"` // 一段浓水流量
- ProductFlow1St float64 `json:"product_flow_1st"` // 一段产水流量
- FeedPressure1St float64 `json:"feed_pressure_1st"` // 一段进水压力
- ConPressure1St float64 `json:"con_pressure_1st"` // 一段浓水压力
- ProductPressure1St float64 `json:"product_pressure_1st"` // 一段产水压力
- Tmp1St float64 `json:"tmp_1st"` // 一段跨膜压差
- Flux1St float64 `json:"flux_1st"` // 一段膜通量
- Permeability1St float64 `json:"permeability_1st"` // 一段渗透率
- FeedFlow2Nd float64 `json:"feed_flow_2nd"` // 二段进水流量
- ConFlow2Nd float64 `json:"con_flow_2nd"` // 二段浓水流量
- ProductFlow2Nd float64 `json:"product_flow_2nd"` // 二段产水流量
- FeedPressure2Nd float64 `json:"feed_pressure_2nd"` // 二段进水压力
- ConPressure2Nd float64 `json:"con_pressure_2nd"` // 二段浓水压力
- ProductPressure2Nd float64 `json:"product_pressure_2nd"` // 二段产水压力
- Tmp2Nd float64 `json:"tmp_2nd"` // 二段压差
- Flux2Nd float64 `json:"flux_2nd"` // 二段通量
- Permeability2Nd float64 `json:"permeability_2nd"` // 二段渗透率
- FeedFlow3Th float64 `json:"feed_flow_3th"` // 三段进水流量
- ConFlow3Th float64 `json:"con_flow_3th"` // 三段浓水流量
- ProductFlow3Th float64 `json:"product_flow_3th"` // 三段产水流量
- FeedPressure3Th float64 `json:"feed_pressure_3th"` // 三段进水压力
- ConPressure3Th float64 `json:"con_pressure_3th"` // 三段浓水压力
- ProductPressure3Th float64 `json:"product_pressure_3th"` // 三段产水压力
- Tmp3Th float64 `json:"tmp_3th"` // 三段压差
- Flux3Th float64 `json:"flux_3th"` // 三段通量
- Permeability3Th float64 `json:"permeability_3th"` // 三段渗透率
- FeedWqTurbidity float64 `json:"feed_wq_turbidity"` // 进水浊度
- FeedWqPh int64 `json:"feed_wq_ph"` // 进水 PH 值
- ProductWqPh int64 `json:"product_wq_ph"` // 产水 PH 值
- FeedWqAl float64 `json:"feed_wq_al"` // 进水水质:铝
- ProductWqAl float64 `json:"product_wq_al"` // 产水水质:铝
- FeedWqFe float64 `json:"feed_wq_fe"` // 进水水质:铁
- ProductWqFe float64 `json:"product_wq_fe"` // 产水水质:铁
- FeedWqMn float64 `json:"feed_wq_mn"` // 进水水质:锰
- ProductWqMn float64 `json:"product_wq_mn"` // 产水水质:锰
- FeedWqSio2 float64 `json:"feed_wq_sio2"` // 进水水质:二氧化硅
- ProductWqSio2 float64 `json:"product_wq_sio2"` // 产水水质:二氧化硅
- FeedWqCod float64 `json:"feed_wq_cod"` // 进水水质:COD
- ProductWqCod float64 `json:"product_wq_cod"` // 产水水质:COD
- FeedWqP float64 `json:"feed_wq_p"` // 进水水质:磷
- ProductWqP float64 `json:"product_wq_p"` // 产水水质:磷
- Step int64 `json:"step"` // 设备当前步序值
- CTime string `json:"c_time"`
- }
- type DcWorkingChest {
- Id int64 `json:"id"`
- ProjectId int64 `json:"project_id"`
- DeviceCode string `json:"device_code"`
- Switch int64 `json:"switch"` // 药箱液位开关 0: 关 1: 开
- Level float64 `json:"level"` // 液位高度
- AgitatorStatus int64 `json:"agitator_status"` // 搅拌器运行状态 0: 未运行 1:运行中
- AgitatorDuration int64 `json:"agitator_duration"` // 搅拌器运行时长
- AgitatorFaultStatus int64 `json:"agitator_fault_status"` // 搅拌器故障状态 0:正常 1:故障
- CTime string `json:"c_time"`
- }
- type DcWorkingPump {
- Id int64 `json:"id"`
- ProjectId int64 `json:"project_id"`
- DeviceCode string `json:"device_code"`
- FeedPressure float64 `json:"feed_pressure"` // 进水压力
- OutPressure float64 `json:"out_pressure"` // 出水压力
- Duration int64 `json:"duration"` // 运行时长 单位 s
- Current float64 `json:"current"` // 运行电流
- Frequency float64 `json:"frequency"` // 运行频率
- Lift float64 `json:"lift"` // 工作扬程
- Efficiency float64 `json:"efficiency"` // 运行效率
- RunStatus int64 `json:"run_status"` // 运行状态 0: 停机 1: 运行正常
- FaultStatus int64 `json:"fault_status"` // 故障状态 0: 正常 1: 故障
- CTime string `json:"c_time"`
- }
- type DcWorkingValve {
- Id int64 `json:"id"`
- ProjectId int64 `json:"project_id"`
- DeviceCode string `json:"device_code"`
- Adjust int64 `json:"adjust"` // 是否为调节阀门 0: 否 1: 是
- Opening float64 `json:"opening"` // 当前阀门的开度
- Closed int64 `json:"closed"` // 关到位 全关 0: 否 1: 是
- Opened int64 `json:"opened"` // 开到位 开到 设置的开度 0: 否 1: 是
- FaultStatus int64 `json:"fault_status"` // 是否故障 0: 否 1: 是
- CTime string `json:"c_time"`
- }
- type (
- DcWorkingReq{
- ProjectId int64 `form:"project_id"`
- DeviceCode string `form:"device_code"`
- }
- WorkingUfResp{
- Info *DcWorkingUf `json:"info"`
- }
- WorkingRoResp{
- Info *DcWorkingRo `json:"info"`
- }
- WorkingChestResp{
- Info *DcWorkingChest `json:"info"`
- }
- WorkingValveResp{
- Info *DcWorkingValve `json:"info"`
- }
- WorkingPumpResp{
- Info *DcWorkingPump `json:"info"`
- }
- )
- type (
- ItemHistoryData {
- ProjectId int64 `json:"project_id"`
- ItemName string `json:"item_name"`
- Val float64 `json:"val"`
- CTime string `json:"h_time"`
- }
- MultiAddItemHistoryDataReq{
- List []*ItemHistoryData `json:"list"`
- }
- MultiAddItemHistoryDataResq{}
- )
|