瀏覽代碼

测试通过

qdy 3 月之前
父節點
當前提交
1b8b55ed27
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      types/response.go

+ 1
- 1
types/response.go 查看文件

@@ -6,7 +6,7 @@ import (
6 6
 
7 7
 // QueryRequest 查询请求
8 8
 type QueryRequest struct {
9
-	SQL    string                 `json:"sql"`
9
+	SQL    string                 `json:"sql" binding:"required"`
10 10
 	Params map[string]interface{} `json:"params,omitempty"`
11 11
 }
12 12
 

Loading…
取消
儲存