From 8c84726593e184fd246d0f3ae7c746117855cf77 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期五, 17 五月 2024 02:59:03 +0800 Subject: [PATCH] fix build bug --- config/config.go | 4 ++-- .gitignore | 1 + service/device.go | 1 - config/gat1400.yaml | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index fc85afd..8e867a6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .idea +vendor gat1400Exchange* gat1400.db logs \ No newline at end of file diff --git a/config/config.go b/config/config.go index e22e647..d113791 100644 --- a/config/config.go +++ b/config/config.go @@ -52,8 +52,8 @@ // 姊帶璁惧 type nvcs struct { - Model string // 鍨嬪彿 - Port string // 绔彛 + Model string `mapstructure:"model"` // 鍨嬪彿 + Port string `mapstructure:"port"` // 绔彛 } type rateLimitConfig struct { diff --git a/config/gat1400.yaml b/config/gat1400.yaml index f4aa22d..a6ac000 100644 --- a/config/gat1400.yaml +++ b/config/gat1400.yaml @@ -21,7 +21,9 @@ channel-number: "12312312315031200003" heartbeat-interval: 30 heartbeat-count: 3 - +nvcs: + model: "" + port : "" # 鏃ュ織閰嶇疆 log: path: logs diff --git a/service/device.go b/service/device.go index 77516e4..6eeb1f2 100644 --- a/service/device.go +++ b/service/device.go @@ -3,7 +3,6 @@ import ( "encoding/json" "time" - "errors" "gat1400Exchange/config" "gat1400Exchange/pkg/logger" -- Gitblit v1.8.0