feat(config): 添加 JSON/TOML 配置读取与 YAML/JSON/TOML 导出功能, 优化部分内部代码结构, 更新 Makefile:添加 Zig 外链检测、可选 UPX 压缩、构建流程优化

This commit is contained in:
2025-12-04 00:14:42 +08:00
parent 016c44618b
commit a2a1fb2f63
9 changed files with 166 additions and 62 deletions

View File

@@ -1,13 +1,9 @@
package model
type ClassRoom struct {
ID string
Name string
Addr string
Mask string
Gateway string
}
func (c ClassRoom) GetName() string {
return c.Name
ID string `mapstructure:"id"`
Name string `mapstructure:"name"`
Addr string `mapstructure:"addr"`
Mask string `mapstructure:"mask"`
Gateway string `mapstructure:"gateway"`
}

View File

@@ -1,5 +0,0 @@
package model
type Named interface {
GetName() string
}