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