This commit is contained in:
TsMask
2023-08-22 19:25:39 +08:00
parent 38d3b7450e
commit 96de169777
45 changed files with 881 additions and 676 deletions

View File

@@ -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"`

View File

@@ -2,39 +2,9 @@
"channel": [
{
"tcp_port": 31232,
"bind_flag": "SMF#1101RJHX1SMF01",
"bind_flag": "SMF#SZ_02",
"province": "BJ",
"device_code": "0001"
},
{
"tcp_port": 31233,
"bind_flag": "UDM#1101RJHX1UDM01",
"province": "BJ",
"device_code": "0002"
},
{
"tcp_port": 31234,
"bind_flag": "AUSF#1101RJHX1AUF01",
"province": "BJ",
"device_code": "0003"
},
{
"tcp_port": 31235,
"bind_flag": "AMF#1101RJHX1AMF01",
"province": "BJ",
"device_code": "0004"
},
{
"tcp_port": 31236,
"bind_flag": "UPF#1101RJHX1UPF01",
"province": "BJ",
"device_code": "0005"
},
{
"tcp_port": 31237,
"bind_flag": "AMF#1101RJHX1AMF03",
"province": "BJ",
"device_code": "0006"
}
],