소스 검색

测试通过

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…
취소
저장