Browse Source

测试通过

qdy 3 months ago
parent
commit
1b8b55ed27
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      types/response.go

+ 1
- 1
types/response.go View File

@@ -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…
Cancel
Save