数据上报
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

44 lines
950 B

package models
const (
//温湿度监测
TYCJ_FactorType_WSD = 5
//档土墙应变监测
TYCJ_FactorType_DTQYB = 13
//桥墩倾斜监测
TYCJ_FactorType_QDQX = 20
//桥梁伸缩缝监测
TYCJ_FactorType_QLSSF = 22
//应力应变监测
TYCJ_FactorType_YLYB = 23
//裂缝监测
TYCJ_FactorType_LF = 28
//挠度监测
TYCJ_FactorType_RD = 31
)
type TYCJ struct {
DtuInfo struct {
Id int `json:"id"`
Code string `json:"code"`
} `json:"dtuInfo"`
SensorData struct {
Id int `json:"id"`
Name string `json:"name"`
Module string `json:"module"`
Channel string `json:"channel"`
FactorType int `json:"factorType"`
ProductCode string `json:"productCode"`
StructId int `json:"structId"`
Time string `json:"time"`
Data struct {
RawValues []float32 `json:"RawValues"`
ThemeValues []float32 `json:"ThemeValues"`
} `json:"data"`
} `json:"sensorData"`
}