mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-09-14 03:09:13 +00:00
21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
import { PrismaReverseProxyRepository } from "../infrastructure/repositories/prisma/reverse-proxy.repository.impl";
|
|||
|
|
import { PrismaServerRepository } from "../infrastructure/repositories/prisma/server.repository.impl";
|
||
|
|
import { PrismaUserRepository } from "../infrastructure/repositories/prisma/user.repository.impl";
|
||
|
|
import { K8sService } from "../services/k8s";
|
||
|
|
import { WebSocketService } from "../services/websocket";
|
||
|
|
import { ReverseProxyService } from "./services/reverse-proxy.service";
|
||
|
|
import { ServerService } from "./services/server.service";
|
||
|
|
import { UserService } from "./services/user.service";
|
||
|
|
|
||
|
|
// Infrastructure layer
|
||
|
|
const userRepo = new PrismaUserRepository();
|
||
|
|
const serverRepo = new PrismaServerRepository();
|
||
|
|
const reverseProxyRepo = new PrismaReverseProxyRepository();
|
||
|
|
const webSocketService = new WebSocketService();
|
||
|
|
|
||
|
|
// Application layer
|
||
|
|
export const userService = new UserService(userRepo);
|
||
|
|
export const serverService = new ServerService(serverRepo, K8sService.getInstance());
|
||
|
|
export const reverseProxyService = new ReverseProxyService(reverseProxyRepo);
|
||
|
|
export const wsService = webSocketService;
|