feat: add booking input validation
This commit is contained in:
1 parent
1e03d055aa
commit
ae5f26baab
3 files changed
+47
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user