增加admin相关页面

This commit is contained in:
张超
2025-06-09 17:59:19 +08:00
parent c273584189
commit 7913a2b381
19 changed files with 345 additions and 532 deletions

View File

@@ -133,7 +133,8 @@ func GetCurrentTheme() string {
return "default"
}
func SetCurrentTheme(theme string) {
func SetCurrentTheme(theme string) error {
return nil
}
// GetJWTSecret 获取 JWT 密钥
@@ -144,8 +145,8 @@ func SetCurrentTheme(theme string) {
// 新增包级函数获取 JWT 密钥
func GetJWTSecret() string {
if globalConfig == nil {
panic("配置未加载,请先调用 LoadConfig")
}
return globalConfig.JwtSecretKey.SecretKey
if globalConfig == nil {
//panic("配置未加载,请先调用 LoadConfig")
}
return globalConfig.JwtSecretKey.SecretKey
}