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.
31 lines
683 B
31 lines
683 B
2 weeks ago
|
package JSNCGLQL
|
||
|
|
||
|
import "goUpload/config"
|
||
|
|
||
|
type ConfigFile struct {
|
||
|
config.Consumer
|
||
|
IoConfig ioConfig `json:"ioConfig"`
|
||
|
SensorConfig
|
||
|
}
|
||
|
type ioConfig struct {
|
||
|
In In `json:"in"`
|
||
|
Out OUT `json:"out"`
|
||
|
}
|
||
|
type In struct {
|
||
|
Mqtt config.MqttConfig `json:"mqtt"`
|
||
|
}
|
||
|
|
||
|
type OUT struct {
|
||
|
Mqtt config.MqttConfig `json:"mqtt"`
|
||
|
}
|
||
|
|
||
|
type SensorConfig struct {
|
||
|
TYCJsensorMap map[string]string `json:"TYCJsensorMap"`
|
||
|
ZDsensorMap map[string]string `json:"ZDsensorMap"`
|
||
|
}
|
||
|
|
||
|
type SensorInfo struct {
|
||
|
Name string `json:"name"` //测点名称
|
||
|
Code string `json:"code"` //测点编号 宜由“桥名简称-监测类别简称-构件类型编码-截面序号-构件序号-测点编号”组成
|
||
|
}
|