优化缓存机制 补充错误码

This commit is contained in:
2025-10-10 00:43:43 +08:00
parent 84899f9935
commit fc35a578e0
3 changed files with 267 additions and 0 deletions
+24
View File
@@ -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"` // 文件内容模板
}