From 1b36d990ed754ebdab75d07989f7abb53946cd74 Mon Sep 17 00:00:00 2001 From: PleBea Date: Mon, 15 Jul 2024 09:13:23 +0900 Subject: [PATCH] feat: Add status field to PlanResponseDTO --- src/modules/plan/dto/plan-response.dto.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/plan/dto/plan-response.dto.ts b/src/modules/plan/dto/plan-response.dto.ts index 904e72a..497e244 100644 --- a/src/modules/plan/dto/plan-response.dto.ts +++ b/src/modules/plan/dto/plan-response.dto.ts @@ -1,4 +1,4 @@ -import { Place, Plan, User } from '@prisma/client'; +import { $Enums, Place, Plan, User } from '@prisma/client'; import { ApiProperty } from '@nestjs/swagger'; @@ -29,6 +29,11 @@ export class PlanResponseDTO implements Partial { @ApiProperty() isAlarmAvailable: boolean; + @ApiProperty({ + enum: $Enums.PlanStatus, + }) + status?: $Enums.PlanStatus; + @ApiProperty() createdAt: Date; }