Commit 24146d5a authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Rename Host field to Name in WafService struct for improved clarity in ListWafsV2 response

parent be45ca84
......@@ -69,7 +69,7 @@ func (c *WafController) ListWafsV2(ctx *gin.Context) {
}
type wafService struct {
Host string `json:"host"`
Name string `json:"name"`
Namespace string `json:"namespace"`
}
......@@ -80,7 +80,7 @@ func (c *WafController) ListWafsV2(ctx *gin.Context) {
items := []wafService{}
for _, waf := range wafs {
items = append(items, wafService{
Host: waf.GatewayName,
Name: waf.GatewayName,
})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment