Commit f3fa3124 by yemin

no message

parent 6527de59
...@@ -70,7 +70,7 @@ func ResponseXls(w http.ResponseWriter, req *http.Request, content io.ReadSeeker ...@@ -70,7 +70,7 @@ func ResponseXls(w http.ResponseWriter, req *http.Request, content io.ReadSeeker
} }
// ExportExcel 生成excel并导出 // ExportExcel 生成excel并导出
// 参数 fileName:文件名;titleList:表头;dataList:数据(数组指针) // 参数 fileName:文件名;titleList:表头;dataList:数据(数组的值只能是struct或者切片)
func ExportExcel(fileName string, titleList []string, dataList []interface{}, w http.ResponseWriter, req *http.Request) { func ExportExcel(fileName string, titleList []string, dataList []interface{}, w http.ResponseWriter, req *http.Request) {
content := ToExcel(titleList, dataList) content := ToExcel(titleList, dataList)
ResponseXls(w, req, content, fileName) ResponseXls(w, req, content, fileName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment