zhangzengfei
2023-06-29 47878f10e573eb05c2041e497aae0c7d2c5bac7a
config/config.go
@@ -18,8 +18,11 @@
   NsqWebApi      string `json:"nsq_webapi"`      // nsq HTTP接口地址
   OrderTopic     string `json:"order_topic"`     // 订单上报的topic
   InventoryTopic string `json:"inventory_topic"` // 库存上报的topic
   QueryTopic     string `json:"query_topic"`     // 金蝶查询接口的topic
   ReplyTopic     string `json:"reply_topic"`     // 金蝶响应查询接口的topic
   SqlQueryTopic  string `json:"query_topic"`     // 金蝶查询接口的topic
   SqlReplyTopic  string `json:"reply_topic"`     // 金蝶响应查询接口的topic
   CSTWebApi      string `json:"cst_webapi"`      // 生产任务单提交地址
   CSTQueryTopic  string `json:"cst_query_topic"` // 提交生产任务单主题
   CSTReplyTopic  string `json:"cst_reply_topic"` // 响应生产任务单主题
   SyncInterval   int    `json:"interval"`        // 同步的时间间隔, 单位/秒
   Debug          bool   `json:"debug"`           // 本地调试, 取本地数据
}
@@ -38,8 +41,10 @@
   Options.NsqWebApi = "http://121.31.232.83:9080/api/nsq/pub?topic=your_topic"
   Options.OrderTopic = "aps.factory.erp.seorder"
   Options.InventoryTopic = "aps.factory.erp.inventory"
   Options.QueryTopic = "aps.factory.erp.k3resource"
   Options.ReplyTopic = "aps.factory.erp.k3reply"
   Options.SqlQueryTopic = "aps.factory.erp.k3resource"
   Options.SqlReplyTopic = "aps.factory.erp.k3reply"
   Options.CSTQueryTopic = "aps.factory.erp.cstApply"
   Options.CSTReplyTopic = "aps.factory.erp.cstReply"
   Options.SyncInterval = 60
   Options.Debug = false
}