优化缓存机制 补充错误码
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package config
|
||||
|
||||
type ModConfigs struct {
|
||||
TemplateDir string `yaml:"template_dir"`
|
||||
Plugin string `yaml:"plugin"`
|
||||
ModConfigs []ModConfig `yaml:"mod_configs"`
|
||||
}
|
||||
type ModConfig struct {
|
||||
Name string `yaml:"name"` // 模板关键词
|
||||
Worker string `yaml:"worker"` // 输入参数
|
||||
ProtoName string `yaml:"proto_name"`
|
||||
MakeDir []ModDir `yaml:"make_dir"`
|
||||
OutFiles []ModFile `yaml:"out_files"`
|
||||
}
|
||||
|
||||
type ModDir struct {
|
||||
Name string `yaml:"name"`
|
||||
Path string `yaml:"path"`
|
||||
}
|
||||
type ModFile struct {
|
||||
BaseDir string `yaml:"base_dir"` //
|
||||
FileName string `yaml:"file_name"`
|
||||
ContentTemplate string `yaml:"content_template"` // 文件内容模板
|
||||
}
|
||||
Reference in New Issue
Block a user