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
24146d5a
Commit
24146d5a
authored
Mar 31, 2025
by
qiuqunfeng
Browse files
Rename Host field to Name in WafService struct for improved clarity in ListWafsV2 response
parent
be45ca84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
internal/controller/waf.go
internal/controller/waf.go
+2
-2
No files found.
internal/controller/waf.go
View file @
24146d5a
...
@@ -69,7 +69,7 @@ func (c *WafController) ListWafsV2(ctx *gin.Context) {
...
@@ -69,7 +69,7 @@ func (c *WafController) ListWafsV2(ctx *gin.Context) {
}
}
type
wafService
struct
{
type
wafService
struct
{
Host
string
`json:"
host
"`
Name
string
`json:"
name
"`
Namespace
string
`json:"namespace"`
Namespace
string
`json:"namespace"`
}
}
...
@@ -80,7 +80,7 @@ func (c *WafController) ListWafsV2(ctx *gin.Context) {
...
@@ -80,7 +80,7 @@ func (c *WafController) ListWafsV2(ctx *gin.Context) {
items
:=
[]
wafService
{}
items
:=
[]
wafService
{}
for
_
,
waf
:=
range
wafs
{
for
_
,
waf
:=
range
wafs
{
items
=
append
(
items
,
wafService
{
items
=
append
(
items
,
wafService
{
Host
:
waf
.
GatewayName
,
Name
:
waf
.
GatewayName
,
})
})
}
}
...
...
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