From d93d2bc56ed06b3c060ff48f49591e8c5d779230 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 14 九月 2023 22:33:45 +0800
Subject: [PATCH] 通讯方式字段转换

---
 conf/config.go |   40 ++++++++++++----------------------------
 1 files changed, 12 insertions(+), 28 deletions(-)

diff --git a/conf/config.go b/conf/config.go
index cdd7133..bf7ffbd 100644
--- a/conf/config.go
+++ b/conf/config.go
@@ -3,8 +3,6 @@
 import (
 	"apsClient/pkg/convertx"
 	"apsClient/pkg/logx"
-	"apsClient/pkg/mysqlx"
-	"apsClient/pkg/redisx"
 	"apsClient/pkg/sqlitex"
 	"github.com/spf13/viper"
 	"log"
@@ -26,13 +24,6 @@
 	System struct {
 		Env              string // 鐜鍊� develop test public
 		Port             int    // 绔彛
-		DbType           string // 鏁版嵁搴撶被鍨�
-		UseMultipoint    bool   // 澶氱偣鐧诲綍鎷︽埅
-		UseRedis         bool   // 浣跨敤redis
-		LimitCountIP     int
-		LimitTimeIP      int
-		RouterPrefix     string // 璺敱鍓嶇紑
-		SudoPassword     string // sudo瀵嗙爜
 		DeviceId         string //璁惧id
 		NetSetShellPath  string //缃戠粶璁剧疆鑴氭湰璺緞
 		NetUpShellName   string //缃戠粶鍋滅敤鑴氭湰
@@ -67,12 +58,18 @@
 
 	Services struct {
 		ApsServer string
+		Serial    string
 	}
 
 	nsqConf struct {
 		NodeId         string
 		NsqdAddr       string
 		NsqlookupdAddr string
+	}
+
+	plc struct {
+		FinishNumberTimeInterval int
+		TotalNumberTimeInterval  int
 	}
 
 	config struct {
@@ -83,27 +80,16 @@
 		Log logx.Conf
 
 		// mysql閰嶇疆
-		Mysql mysqlx.Conf
-
-		// mysql閰嶇疆
 		Sqlite sqlitex.Conf
-
-		// redis閰嶇疆
-		Redis redisx.Conf
-
-		// etcd閰嶇疆
-		Etcd Etcd
-
-		// rancher閰嶇疆
-		Rancher Rancher
-
-		// k8s閰嶇疆
-		K8s K8s
 
 		//Services Address
 		Services Services
 
+		//NsqConf
 		NsqConf nsqConf
+
+		//PLC
+		PLC plc
 	}
 )
 
@@ -142,9 +128,7 @@
 	log.Println("......................................................")
 	log.Printf("   System:                %+v", Conf.System)
 	log.Printf("   Log:                   %+v", Conf.Log)
-	log.Printf("   Mysql:                 %+v", Conf.Mysql)
-	log.Printf("   etcd:                  %+v", Conf.Etcd)
-	log.Printf("   rancher:               %+v", Conf.Rancher)
-	log.Printf("   k8s:                   %+v", Conf.K8s)
+	log.Printf("   plc :                  %+v", Conf.PLC)
+	log.Printf("   services :                  %+v", Conf.Services)
 	log.Println("......................................................")
 }

--
Gitblit v1.8.0