refactor: standardize code comments

This commit is contained in:
tinkle-community
2025-12-08 01:40:48 +08:00
parent 0636ced476
commit a12c0ae8c9
103 changed files with 5466 additions and 5468 deletions

View File

@@ -1,11 +1,11 @@
package logger
// Config 日志配置(简化版)
// Config is the logger configuration (simplified version)
type Config struct {
Level string `json:"level"` // 日志级别: debug, info, warn, error (默认: info)
Level string `json:"level"` // Log level: debug, info, warn, error (default: info)
}
// SetDefaults 设置默认值
// SetDefaults sets default values
func (c *Config) SetDefaults() {
if c.Level == "" {
c.Level = "info"