feat: add booking input validation

This commit is contained in:
que01 committed 2026-09-18 16:29:54 +08:00
1 parent 1e03d055aa
commit ae5f26baab
3 files changed
+47 -5

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
import { BadRequestException, Injectable, NotFoundException } from "@nestjs/common";
import { BookingRequestType, Prisma } from "@prisma/client";
import { Prisma } from "@prisma/client";
import { PrismaService } from "./prisma.service.js";
export interface CreateBookingInput {
requestType: BookingRequestType;
requestType: "package" | "private_chef";
customerName: string;
phone?: string;
wechatId?: string;