Browse Source

添加配置参数

pull/230/head
zhangxin 3 years ago
parent
commit
65cb1ae0f3
2 changed files with 5 additions and 1 deletions
  1. +2
    -0
      conf/config.go
  2. +3
    -1
      conf/config.yaml

+ 2
- 0
conf/config.go View File

@ -24,6 +24,8 @@ type EnvConfig struct {
Inbox string `yaml:"inbox"`
Outbox string `yaml:"outbox"`
AndonTouchOff string `yaml:"andontouchoff"`
PortalGetTimeUrl string `yaml:"portalgettimeurl"`
PortalPostFileUrl string `yaml:"portalpostfileurl"`
}
//read yaml config


+ 3
- 1
conf/config.yaml View File

@ -25,4 +25,6 @@ inbox: D:\Go\gopath\src\leit.com\lapp_-gaas_-gframe\doc\Inbox
# 输出文件
outbox: D:\Go\gopath\src\leit.com\lapp_-gaas_-gframe\doc\Outbox
# mes andon url
andontouchoff: http://10.84.128.80:4000/Features/API/Andon/api/WebCmd/AndonRequest
andontouchoff: http://10.84.128.80:4000/Features/API/Andon/api/WebCmd/AndonRequest
portalgettimeurl: http://localhost:8093/admin/om/workorder/selectlastmodify
portalpostfileurl: http://localhost:8093/admin/om/workorder/synchronous

Loading…
Cancel
Save