From bc0b7e914a378b2c40f9d2ec2470b61a19c18288 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 11 八月 2023 17:05:02 +0800
Subject: [PATCH] 修改上报的数据结构, 添加plc查询接口
---
config/config.go | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/config/config.go b/config/config.go
index 9200865..143c96a 100644
--- a/config/config.go
+++ b/config/config.go
@@ -9,6 +9,7 @@
)
type Config struct {
+ ServePort string `json:"serve_port"` // 涓昏处鍙穒d, 鐢ㄤ簬璇锋眰web鎺ュ彛
ParentId string `json:"parent_id"` // 涓昏处鍙穒d, 鐢ㄤ簬璇锋眰web鎺ュ彛
JWTKey string `json:"jwt_key"` // 鐢熸垚jwt鐨刱ey
NsqServer string `json:"nsq_server"` // nsq TCP鏈嶅姟绔湴鍧�
@@ -24,6 +25,7 @@
var Options Config
func DefaultConfig() {
+ Options.ServePort = "16860"
Options.ParentId = "guangsheng"
Options.JWTKey = "abcdefghijklmn"
Options.NsqServer = "fai365.com:4150"
--
Gitblit v1.8.0