style: 导出日志增加已导出的表信息
This commit is contained in:
parent
65aac67cf4
commit
741da79d60
|
@ -51,6 +51,12 @@ func New(xlsxPath string) *ConfigExport {
|
||||||
}
|
}
|
||||||
ce.configs = append(ce.configs, config)
|
ce.configs = append(ce.configs, config)
|
||||||
ce.exist[config.Name] = true
|
ce.exist[config.Name] = true
|
||||||
|
|
||||||
|
log.Info("ConfigExport",
|
||||||
|
zap.String("File", xlsxPath),
|
||||||
|
zap.String("Sheet", sheet.Name),
|
||||||
|
zap.String("Info", "Export successfully"),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ce
|
return ce
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
},
|
},
|
||||||
"Other": {
|
"Other": {
|
||||||
"0": {
|
"0": {
|
||||||
"name": "张飞",
|
"id": 1,
|
||||||
"id": 1
|
"name": "张飞"
|
||||||
},
|
},
|
||||||
"1": {
|
"1": {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
{
|
{
|
||||||
|
"0": {
|
||||||
|
"": {
|
||||||
|
"Award": null,
|
||||||
|
"Other": null,
|
||||||
|
"Id": 0,
|
||||||
|
"Count": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"1": {
|
"1": {
|
||||||
"b": {
|
"b": {
|
||||||
"Id": 1,
|
"Id": 1,
|
||||||
|
@ -21,21 +29,21 @@
|
||||||
},
|
},
|
||||||
"2": {
|
"2": {
|
||||||
"c": {
|
"c": {
|
||||||
|
"Id": 2,
|
||||||
|
"Count": "c",
|
||||||
|
"Award": {
|
||||||
|
"0": "asd",
|
||||||
|
"1": "12"
|
||||||
|
},
|
||||||
"Other": {
|
"Other": {
|
||||||
"0": {
|
"0": {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"name": "张飞"
|
"name": "张飞"
|
||||||
},
|
},
|
||||||
"1": {
|
"1": {
|
||||||
"name": "刘备",
|
"id": 2,
|
||||||
"id": 2
|
"name": "刘备"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"Id": 2,
|
|
||||||
"Count": "c",
|
|
||||||
"Award": {
|
|
||||||
"0": "asd",
|
|
||||||
"1": "12"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"d": {
|
"d": {
|
||||||
|
@ -46,13 +54,13 @@
|
||||||
"1": "12"
|
"1": "12"
|
||||||
},
|
},
|
||||||
"Other": {
|
"Other": {
|
||||||
"1": {
|
|
||||||
"id": 2,
|
|
||||||
"name": "刘备"
|
|
||||||
},
|
|
||||||
"0": {
|
"0": {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"name": "张飞"
|
"name": "张飞"
|
||||||
|
},
|
||||||
|
"1": {
|
||||||
|
"id": 2,
|
||||||
|
"name": "刘备"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,9 +12,11 @@ var json = jsonIter.ConfigCompatibleWithStandardLibrary
|
||||||
var full map[string]any
|
var full map[string]any
|
||||||
var (
|
var (
|
||||||
// IndexConfig 有索引
|
// IndexConfig 有索引
|
||||||
|
IndexConfigSign = "IndexConfig"
|
||||||
IndexConfig map[int]map[string]*IndexConfigDefine
|
IndexConfig map[int]map[string]*IndexConfigDefine
|
||||||
_IndexConfig map[int]map[string]*IndexConfigDefine
|
_IndexConfig map[int]map[string]*IndexConfigDefine
|
||||||
// EasyConfig 无索引
|
// EasyConfig 无索引
|
||||||
|
EasyConfigSign = "EasyConfig"
|
||||||
EasyConfig *EasyConfigDefine
|
EasyConfig *EasyConfigDefine
|
||||||
_EasyConfig *EasyConfigDefine
|
_EasyConfig *EasyConfigDefine
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue