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…
Откажи
Сачувај