zhangzengfei
2024-05-17 8c84726593e184fd246d0f3ae7c746117855cf77
fix build bug
4个文件已修改
10 ■■■■■ 已修改文件
.gitignore 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/config.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/gat1400.yaml 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/device.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.gitignore
@@ -1,4 +1,5 @@
.idea
vendor
gat1400Exchange*
gat1400.db
logs
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 {
config/gat1400.yaml
@@ -21,7 +21,9 @@
  channel-number: "12312312315031200003"
  heartbeat-interval: 30
  heartbeat-count: 3
nvcs:
  model: ""
  port : ""
# 日志配置
log:
  path: logs
service/device.go
@@ -3,7 +3,6 @@
import (
    "encoding/json"
    "time"
    "errors"
    "gat1400Exchange/config"
    "gat1400Exchange/pkg/logger"