feat: 重构 config 和 configexport 包
- 配置加载包 config 更名为 configuration - 配置导出包 configexport 更名为 pce - 重构 config 包加载方式,采用加载器的方式,并且支持多加载器 - 重构 configexport 包,支持通过实现模板的方式导出不同格式的数据文件及结构文件
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package pce
|
||||
|
||||
type Config interface {
|
||||
// GetConfigName 配置名称
|
||||
GetConfigName() string
|
||||
// GetDisplayName 配置显示名称
|
||||
GetDisplayName() string
|
||||
// GetDescription 配置描述
|
||||
GetDescription() string
|
||||
// GetIndexCount 索引数量
|
||||
GetIndexCount() int
|
||||
// GetFields 获取字段
|
||||
GetFields() []dataField
|
||||
// GetData 获取数据
|
||||
GetData() [][]dataInfo
|
||||
}
|
||||
Reference in New Issue
Block a user