Commit a0230089 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Update ListListenerHistory method to set a default limit and localize operation constants

- Set the default limit for listener history queries to 1,000,000 in the ListListenerHistory method.
- Change the operation constant for creation from "新建" to "创建" for improved clarity in the WAF model.
parent c38228a3
...@@ -506,6 +506,7 @@ func (c *WafController) ListListenerHistory(ctx *gin.Context) { ...@@ -506,6 +506,7 @@ func (c *WafController) ListListenerHistory(ctx *gin.Context) {
utils.AssembleResponse(ctx, nil, err) utils.AssembleResponse(ctx, nil, err)
return return
} }
limit = 1000000
name := ctx.Query("name") name := ctx.Query("name")
gatewayName := ctx.Query("gateway_name") gatewayName := ctx.Query("gateway_name")
listenerName := ctx.Query("listener_name") listenerName := ctx.Query("listener_name")
......
...@@ -177,7 +177,7 @@ const ( ...@@ -177,7 +177,7 @@ const (
type Operation string type Operation string
const ( const (
OperationCreate Operation = "建" OperationCreate Operation = "建"
OperationDelete Operation = "删除" OperationDelete Operation = "删除"
) )
......
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