重构
This commit is contained in:
@@ -11,14 +11,16 @@ import (
|
||||
"github.com/aceld/zinx/zlog"
|
||||
)
|
||||
|
||||
type Channel struct {
|
||||
TCPPort int `json:"tcp_port"` //当前通道的TCP监听端口
|
||||
BindFlag string `json:"bind_flag"` //当前通道bind 的网元信息
|
||||
Province string `json:"province"` //网元所在省份
|
||||
DeviceCode string `json:"device_code"` //主机编码 四位,每1位可用0-9、A-Z编码
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
// 网元通道
|
||||
Channel []struct {
|
||||
TCPPort int `json:"tcp_port"` //当前通道的TCP监听端口
|
||||
BindFlag string `json:"bind_flag"` //当前通道bind 的网元信息
|
||||
Province string `json:"province"` //网元所在省份
|
||||
DeviceCode string `json:"device_code"` //主机编码 四位,每1位可用0-9、A-Z编码
|
||||
} `json:"channel"`
|
||||
Channel []Channel `json:"channel"`
|
||||
|
||||
// 数据库连接
|
||||
Mysql string `json:"mysql"`
|
||||
|
||||
Reference in New Issue
Block a user