mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 18:50:26 +08:00
WAF列表中去除跟服务分组相关的策略
This commit is contained in:
@@ -272,6 +272,7 @@ func (this *HTTPFirewallPolicyDAO) CountAllEnabledFirewallPolicies(tx *dbs.Tx, k
|
|||||||
State(HTTPFirewallPolicyStateEnabled).
|
State(HTTPFirewallPolicyStateEnabled).
|
||||||
Attr("userId", 0).
|
Attr("userId", 0).
|
||||||
Attr("serverId", 0).
|
Attr("serverId", 0).
|
||||||
|
Attr("groupId", 0).
|
||||||
Count()
|
Count()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -286,6 +287,7 @@ func (this *HTTPFirewallPolicyDAO) ListEnabledFirewallPolicies(tx *dbs.Tx, keywo
|
|||||||
State(HTTPFirewallPolicyStateEnabled).
|
State(HTTPFirewallPolicyStateEnabled).
|
||||||
Attr("userId", 0).
|
Attr("userId", 0).
|
||||||
Attr("serverId", 0).
|
Attr("serverId", 0).
|
||||||
|
Attr("groupId", 0).
|
||||||
Offset(offset).
|
Offset(offset).
|
||||||
Limit(size).
|
Limit(size).
|
||||||
DescPk().
|
DescPk().
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user