Explorar el Código

修复执行sql代码bugp

qdy hace 3 meses
padre
commit
50a3ff50f4
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      types/types.go

+ 2
- 2
types/types.go Ver fichero

@@ -7,8 +7,8 @@ import (
7 7
 // QueryRequest 查询请求
8 8
 type QueryRequest struct {
9 9
 	SQL              string                 `json:"sql" binding:"required"`
10
-	Params           map[string]interface{} `json:"params,omitempty"`
11
-	PositionalParams []interface{}          `json:"positionalParams,omitempty"` // 位置参
10
+	Params           map[string]interface{} `json:"params,omitempty"`           //名称参数
11
+	PositionalParams []interface{}          `json:"positionalParams,omitempty"` // 位置参
12 12
 }
13 13
 
14 14
 // QueryResult 查询结果

Loading…
Cancelar
Guardar