浏览代码

修复执行sql代码bugp

qdy 3 个月前
父节点
当前提交
50a3ff50f4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      types/types.go

+ 2
- 2
types/types.go 查看文件

@@ -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 查询结果

正在加载...
取消
保存