25 lines
694 B
Go
25 lines
694 B
Go
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"` // 文件内容模板
|
|
}
|