fix: 完善 API 基础设施验收

This commit is contained in:
root
2026-09-14 13:30:03 +08:00
parent f3fb16dbc0
commit 61562f6893
5 changed files with 201 additions and 17 deletions
+4
View File
@@ -9,6 +9,10 @@ import { HttpStatus } from "@nestjs/common";
export class HealthService implements OnModuleDestroy {
private readonly redis: RedisClientType;
get redisClient(): RedisClientType {
return this.redis;
}
constructor(@Inject(PrismaService) private readonly prisma: PrismaService) {
this.redis = createClient({
url: process.env.REDIS_URL ?? "redis://127.0.0.1:6379",