Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
qiuqunfeng
waf-console
Commits
0c6cc2a7
Commit
0c6cc2a7
authored
Feb 06, 2025
by
qiuqunfeng
Browse files
commit
parent
aac6ce00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
internal/service/waf.go
internal/service/waf.go
+4
-1
No files found.
internal/service/waf.go
View file @
0c6cc2a7
...
@@ -123,7 +123,10 @@ func (s *wafService) SaveRuleCategoryToDB(ctx context.Context) error {
...
@@ -123,7 +123,10 @@ func (s *wafService) SaveRuleCategoryToDB(ctx context.Context) error {
DescriptionZH
:
category
.
Description
.
Zh
,
DescriptionZH
:
category
.
Description
.
Zh
,
Rules
:
model
.
RuleList
(
rules
),
Rules
:
model
.
RuleList
(
rules
),
}
}
s
.
db
.
Table
(
"waf_rule_categories"
)
.
Create
(
&
model
)
err
=
s
.
db
.
Table
(
"waf_rule_categories"
)
.
Create
(
&
model
)
.
Error
if
err
!=
nil
{
return
err
}
}
}
return
nil
return
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment