Ver código fonte

测试通过

qdy 3 meses atrás
pai
commit
1b8b55ed27
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      types/response.go

+ 1
- 1
types/response.go Ver arquivo

@@ -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
 

Carregando…
Cancelar
Salvar