feat: Execl读写工具类

This commit is contained in:
TsMask
2025-05-09 11:53:24 +08:00
parent 8c663f1e18
commit ad6626e67b
2 changed files with 110 additions and 50 deletions

View File

@@ -655,7 +655,7 @@ func (s *SysUserController) Import(c *gin.Context) {
// 表格文件绝对地址
filePath := file.ParseUploadFileAbsPath(body.FilePath)
// 读取表格数据
rows, err := file.ReadSheet(filePath, "")
rows, err := file.ReadFileExecl(filePath, "")
if err != nil {
c.JSON(200, resp.ErrMsg(err.Error()))
return