feat: 搭建 NestJS 后端基础设施与 Prisma 数据模型

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nixevol
2026-06-28 15:35:47 +08:00
co-authored by Cursor
parent 3e9ab08881
commit 9629597b1d
23 changed files with 8051 additions and 0 deletions
@@ -0,0 +1,12 @@
import { ErrorMessage } from '@artveris/shared';
// 业务异常:携带统一业务码,由全局过滤器转换为标准响应体。
export class BusinessException extends Error {
constructor(
public readonly code: number,
message?: string,
public readonly httpStatus = 400,
) {
super(message || ErrorMessage[code] || '业务处理失败');
}
}