|
@@ -51,10 +51,11 @@ var apiFieldMappings = map[string]map[string]FieldPathConfig{
|
|
"黑白名单": {
|
|
"黑白名单": {
|
|
"AllowAndDenyIps": {Paths: []string{"ip", "ips", "data.ip", "data.ips"}, FieldType: "array_string"},
|
|
"AllowAndDenyIps": {Paths: []string{"ip", "ips", "data.ip", "data.ips"}, FieldType: "array_string"},
|
|
"RuleID": {Paths: []string{"ruleId", "data.ruleId", "ids", "data.ids"}, FieldType: "array_int"},
|
|
"RuleID": {Paths: []string{"ruleId", "data.ruleId", "ids", "data.ids"}, FieldType: "array_int"},
|
|
|
|
+ "Comment": {Paths: []string{"comment", "data.comment", "desc"}},
|
|
},
|
|
},
|
|
"CC": {
|
|
"CC": {
|
|
"AllowAndDenyIps": {Paths: []string{"ips","newIp", "data.newIp","data.ips", "ip", "data.ip" }},
|
|
"AllowAndDenyIps": {Paths: []string{"ips","newIp", "data.newIp","data.ips", "ip", "data.ip" }},
|
|
- "RuleID": {Paths: []string{"ruleId", "data.ruleId", "ids", "data.ids"}, FieldType: "array_int"},
|
|
|
|
|
|
+ "RuleID": {Paths: []string{"allowOrDeny"}, FieldType: "int"},
|
|
},
|
|
},
|
|
// "分配网关组" 的日志通常不包含用户层面的业务数据,所以这里不定义
|
|
// "分配网关组" 的日志通常不包含用户层面的业务数据,所以这里不定义
|
|
}
|
|
}
|
|
@@ -70,6 +71,7 @@ type CleanedExtraData struct {
|
|
AddrBackendList []string
|
|
AddrBackendList []string
|
|
CustomHost []string
|
|
CustomHost []string
|
|
AllowAndDenyIps string
|
|
AllowAndDenyIps string
|
|
|
|
+ AllowOrDeny int
|
|
}
|
|
}
|
|
|
|
|
|
// --- 3. 服务实现 ---
|
|
// --- 3. 服务实现 ---
|