创建WAF分组时也记录代号

This commit is contained in:
GoEdgeLab
2021-10-25 19:02:20 +08:00
parent b742f4d93c
commit 4dfa46a907
2 changed files with 3 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ func (this *HTTPFirewallRuleGroupService) CreateHTTPFirewallRuleGroup(ctx contex
tx := this.NullTx()
groupId, err := models.SharedHTTPFirewallRuleGroupDAO.CreateGroup(tx, req.IsOn, req.Name, req.Description)
groupId, err := models.SharedHTTPFirewallRuleGroupDAO.CreateGroup(tx, req.IsOn, req.Name, req.Code, req.Description)
if err != nil {
return nil, err
}