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
681 B
31 lines
681 B
package CDJYSN
|
|
|
|
import "goUpload/config"
|
|
|
|
type ConfigFile struct {
|
|
config.Consumer
|
|
IoConfig ioConfig `json:"ioConfig"`
|
|
SensorMap sensorConfig `json:"sensorMap"`
|
|
Info map[string]string `json:"info,omitempty"`
|
|
}
|
|
|
|
type ioConfig struct {
|
|
In In `json:"in"`
|
|
Out OUT `json:"out"`
|
|
}
|
|
|
|
type In struct {
|
|
Http config.HttpConfig `json:"http"`
|
|
CronStr string `json:"cronStr"`
|
|
}
|
|
|
|
type OUT struct {
|
|
File config.FileConfig `json:"file"`
|
|
}
|
|
|
|
type sensorConfig struct {
|
|
GnssSensorMap map[string]string `json:"GnssSensorMap"`
|
|
RainSensorMap map[string]string `json:"RainSensorMap"`
|
|
//内部位移
|
|
NBWYSensorMap map[string]string `json:"NBWYSensorMap"`
|
|
}
|
|
|