数据上报
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.
 
 

57 lines
1.6 KiB

package models
const (
//立杆倾斜与立杆轴力
Savoir_FactorType_QX_ZL = 285
//倾斜与支架水平位移
Savoir_FactorType_QX_SP = 286
//立杆倾斜与模板沉降
Savoir_FactorType_QX_CZ = 287
//savoir_FactorType_立杆水平位移 = 1084
)
type SavoirTheme struct {
Station struct {
Name string `json:"name"`
Id int `json:"id"`
Structure Structure `json:"structure"`
Factor struct {
Id int `json:"id"`
Name string `json:"name"`
ProtoCode string `json:"protoCode"`
ProtoName string `json:"protoName"`
Items []struct {
Id int `json:"id"`
Name string `json:"name"`
FieldName string `json:"field_name"`
UnitName string `json:"unit_name"`
Precision interface{} `json:"precision"`
} `json:"items"`
Units struct {
Strain string `json:"strain"`
} `json:"units"`
} `json:"factor"`
ManualData bool `json:"manual_data"`
Formula interface{} `json:"formula"`
Params interface{} `json:"params"`
Group interface{} `json:"group"`
Labels string `json:"labels"`
GroupParam interface{} `json:"groupParam"`
} `json:"station"`
AcqTime string `json:"acqTime"`
TaskId string `json:"taskId"`
Data map[string]float64 `json:"data"`
State int `json:"state"`
DataEmpty bool `json:"dataEmpty"`
RawAgg bool `json:"rawAgg"`
}
type Structure struct {
ThingId string `json:"thingId"`
Id int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
OrgId int `json:"orgId"`
}