Ver código fonte

fix:修复excel中的index字段类型

Roc 1 ano atrás
pai
commit
d05e60e154
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5 5
      services/excel/lucky_sheet.go

+ 5 - 5
services/excel/lucky_sheet.go

@@ -108,7 +108,7 @@ type LuckySheetDataBak struct {
 // LuckySheetData sheet表格数据
 type LuckySheetData struct {
 	Name     string               `json:"name" description:"工作表名称"`
-	Index    int                  `json:"index" description:"工作表索引"`
+	Index    interface{}          `json:"index" description:"工作表索引"`
 	Row      int                  `json:"row" description:"行数"`
 	Column   int                  `json:"column" description:"列数"`
 	CellData []LuckySheetCellData `json:"celldata" description:"单元格数据"`
@@ -898,10 +898,10 @@ var LuckyFontFamilyMap = map[int]string{
 	2:  "Tahoma",
 	3:  "Verdana",
 	4:  "微软雅黑",
-	5:  "宋体",  //宋体(Song)、
-	6:  "黑体",  // 黑体(ST Heiti)
-	7:  "楷体",  //楷体(ST Kaiti),
-	8:  "仿宋",  //仿宋(ST FangSong),
+	5:  "宋体",   //宋体(Song)、
+	6:  "黑体",   // 黑体(ST Heiti)
+	7:  "楷体",   //楷体(ST Kaiti),
+	8:  "仿宋",   //仿宋(ST FangSong),
 	9:  "新宋体", //新宋体(ST Song),
 	10: "华文新魏",
 	11: "华文行楷",