application增加API的初始化

This commit is contained in:
2025-09-12 14:58:07 +08:00
parent 41bbe69442
commit 8f9bbca22b
2 changed files with 27 additions and 5 deletions

View File

@@ -33,8 +33,9 @@ type Config struct {
// AppConfig 代表应用基础配置
type AppConfig struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
Name string `yaml:"name"`
Version string `yaml:"version"`
JWTSecret string `yaml:"jwt_secret"` // JWT 密钥
}
// ServerConfig 代表服务器配置