|
|
@ -8,6 +8,7 @@ import ( |
|
|
|
var DbConfig *EnvConfig |
|
|
|
|
|
|
|
type EnvConfig struct { |
|
|
|
Project string `yaml:"project"` |
|
|
|
Finr int `yaml:"finr"` |
|
|
|
Mongdbname string `yaml:"mongdbname"` |
|
|
|
Mongdbip string `yaml:"mongdbip"` |
|
|
@ -28,11 +29,18 @@ type EnvConfig struct { |
|
|
|
PortalPostFileUrl string `yaml:"portalpostfileurl"` |
|
|
|
PortalCachePostFileUrl string `yaml:"portalcachepostfileurl"` |
|
|
|
PortalHost string `yaml:"portalhost"` |
|
|
|
Proxy string `yaml:"proxy"` |
|
|
|
PLCBackend string `yaml:"plcbackend"` |
|
|
|
PLCStep1DB string `yaml:"plcstep1db"` |
|
|
|
Proxy string `yaml:"proxy"` |
|
|
|
PLCWriteBackend string `yaml:"plcwritebackend"` |
|
|
|
PLCReadBackend string `yaml:"plcreadbackend"` |
|
|
|
PLCStep1DB string `yaml:"plcstep1db"` |
|
|
|
PLCStep2DB string `yaml:"plcstep2db"` |
|
|
|
PLCStep3DB string `yaml:"plcstep3db"` |
|
|
|
// 南沙工厂座椅下线的PLC地址位
|
|
|
|
OfflineDBSign string `yaml:"offlinedbsign"` |
|
|
|
OfflineDBSave string `yaml:"offlinedbdata"` |
|
|
|
OfflinePLCType string `yaml:"offlineplctype"` |
|
|
|
OfflinePLCAddress string `yaml:"offlineplcaddress"` |
|
|
|
OfflinePLCRetry int `yaml:"offlineplcretry"` |
|
|
|
} |
|
|
|
|
|
|
|
//read yaml config
|
|
|
|