docs: add package and exported symbol comments for revive lint compliance

This commit is contained in:
ryan
2026-06-09 13:42:06 +08:00
parent 4ac9857fe8
commit b05d26c9c6
40 changed files with 87 additions and 0 deletions
+2
View File
@@ -75,10 +75,12 @@ func init() {
log.Printf("[Storage] S3 storage initialized (bucket: %s, prefix: %s, cdn: %s)\n", bucket, keyPrefix, cdnURL)
}
// IsEnabledFunc 检查 S3 存储是否已初始化(可替换用于测试)
var IsEnabledFunc = func() bool {
return client != nil
}
// IsEnabled 检查 S3 存储是否可用
func IsEnabled() bool {
return IsEnabledFunc()
}