浏览代码

增加参数。csv是否包含表头

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

+ 1
- 0
types/types.go 查看文件

@@ -9,6 +9,7 @@ type QueryRequest struct {
9 9
 	SQL              string                 `json:"sql" binding:"required"`
10 10
 	Params           map[string]interface{} `json:"params,omitempty"`           //名称参数
11 11
 	PositionalParams []interface{}          `json:"positionalParams,omitempty"` // 位置参数
12
+	writerHeader     bool                   //如果查询返回cvs格式时候,包含表头还是不包含。true包含。第一行是表头
12 13
 }
13 14
 
14 15
 // QueryResult 查询结果

正在加载...
取消
保存