feat: psap mf ne adapt
This commit is contained in:
51
config/param/mf_param_config.yaml
Normal file
51
config/param/mf_param_config.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
mf:
|
||||
system:
|
||||
display: "System"
|
||||
sort: 1
|
||||
list:
|
||||
- name: "label"
|
||||
type: "string"
|
||||
value: "mf-core"
|
||||
access: "read-only"
|
||||
filter: ""
|
||||
display: "Label"
|
||||
comment: ""
|
||||
- name: "serviceIP"
|
||||
type: "ipv4"
|
||||
value: "172.16.5.110"
|
||||
access: "read-only"
|
||||
filter: ""
|
||||
display: "Public Network IPv4"
|
||||
comment: ""
|
||||
agents:
|
||||
display: "Agent List"
|
||||
sort: 3
|
||||
array:
|
||||
- name: "index"
|
||||
type: "int"
|
||||
value: "0"
|
||||
access: "read-only"
|
||||
filter: ""
|
||||
display: "Index"
|
||||
comment: "0~10000"
|
||||
- name: "name"
|
||||
type: "regex"
|
||||
value: "1000"
|
||||
access: "read-write"
|
||||
filter: "^[0-9]{4,8}$"
|
||||
display: "Name"
|
||||
comment: ""
|
||||
- name: "password"
|
||||
type: "string"
|
||||
value: ""
|
||||
access: "read-only"
|
||||
filter: ""
|
||||
display: "Password"
|
||||
comment: "do not display"
|
||||
- name: "domain"
|
||||
type: "string"
|
||||
value: ""
|
||||
access: "read-only"
|
||||
filter: ""
|
||||
display: "Domain"
|
||||
comment: "ip:port"
|
||||
@@ -21,15 +21,15 @@ import (
|
||||
|
||||
const (
|
||||
// 数据库
|
||||
DbHost = "192.168.9.58"
|
||||
DbPort = 13306
|
||||
DbHost = "192.168.2.223"
|
||||
DbPort = 33066
|
||||
DbUser = "root"
|
||||
DbPassswd = "1000omc@kp!"
|
||||
DbName = "omc_db"
|
||||
// 配置文件路径
|
||||
configParamDir = "../../../config/param"
|
||||
// configParamFile = "*" // 目录下全部更新
|
||||
configParamFile = "mme_param_config.yaml" // 单文件更新
|
||||
configParamFile = "mf_param_config.yaml" // 单文件更新
|
||||
)
|
||||
|
||||
func TestConfig(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user