mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-04 23:16:37 +08:00
docs: add package and exported symbol comments for revive lint compliance
This commit is contained in:
@@ -203,6 +203,7 @@ func buildDSN(host string, port int, username, password string) string {
|
||||
return pqURL.String()
|
||||
}
|
||||
|
||||
// DB 返回带上下文追踪的 GORM 数据库实例
|
||||
func DB(ctx context.Context) *gorm.DB {
|
||||
if db == nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user