feat(moderation): add user profile content moderation for avatars, covers, and bios
All checks were successful
Build Backend / build (push) Successful in 4m24s
Build Backend / build-docker (push) Successful in 1m14s

This commit is contained in:
lafay
2026-04-15 11:50:47 +08:00
parent b6f2df87c4
commit 90495385cd
23 changed files with 1561 additions and 55 deletions

View File

@@ -61,6 +61,7 @@ var ServiceSet = wire.NewSet(
ProvideVerificationService,
ProvideAdminVerificationService,
ProvideSensitiveService,
ProvideUserProfileAuditService,
// 日志服务
ProvideAsyncLogManager,
@@ -465,3 +466,12 @@ func ProvideSensitiveService(
}
return service.NewSensitiveService(sensitiveWordRepo, redisClient, sensitiveCfg)
}
func ProvideUserProfileAuditService(
auditRepo repository.UserProfileAuditRepository,
userRepo repository.UserRepository,
hookManager *hook.Manager,
moderationHooks *hook.ModerationHooks,
) service.UserProfileAuditService {
return service.NewUserProfileAuditService(auditRepo, userRepo, hookManager, moderationHooks)
}