ConvertUtil独立为包convert_util

This commit is contained in:
xiangheng
2024-11-07 14:49:44 +08:00
parent 962e93c73e
commit e1c8aa0b99
26 changed files with 182 additions and 171 deletions

View File

@@ -2,7 +2,7 @@ package excel2
import (
"fmt"
"x_admin/util"
"x_admin/util/convert_util"
"github.com/xuri/excelize/v2"
)
@@ -26,7 +26,7 @@ func GetExcelColumnName(columnNumber int) string {
func Export(lists any, cols []Col, sheet string, title string) (file *excelize.File, err error) {
e := ExcelInit()
data := util.ConvertUtil.ShallowStructsToMaps(lists)
data := convert_util.ShallowStructsToMaps(lists)
err = ExportExcel(sheet, title, data, cols, e)
if err != nil {