Add classification annotations

This commit is contained in:
2025-10-27 23:12:15 +08:00
parent 3990ec01c6
commit 5aacb88c22
44 changed files with 2769 additions and 2241 deletions

View File

@@ -13,6 +13,10 @@ import (
"github.com/spf13/viper"
)
// ============================================================================
// 公共函数
// ============================================================================
// ValidateConfig 验证配置
func ValidateConfig() (*AppConfig, error) {
var config AppConfig
@@ -31,6 +35,10 @@ func ValidateConfig() (*AppConfig, error) {
return &config, nil
}
// ============================================================================
// 私有函数
// ============================================================================
// validateConfig 验证配置
func validateConfig(config *AppConfig) error {
// 验证服务器配置