作者 yangfu

返回头部数据

... ... @@ -270,14 +270,12 @@ func (srv ExcelDataService) importResultWithHeader(headers []excel.DataField, fa
fail := map[string]interface{}{
"body": failRows,
}
var header = make([]map[string]string, 0)
var header = make(map[string]string)
for i := 0; i < len(headers); i++ {
item := headers[i]
header = append(header, map[string]string{
item.EnName: item.CnName,
})
header[item.EnName] = item.CnName
}
//fail["header"] = header
fail["header"] = header
result["fail"] = fail
}
return result
... ...