From c3005c762a2a82104be560fff3c98ab23646eeb7 Mon Sep 17 00:00:00 2001 From: suk-6 Date: Mon, 15 Jul 2024 09:46:00 +0900 Subject: [PATCH] feat: Add ParticipantsDTO for getParticipantsLocation API response --- src/modules/location/dto/participants.dto.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/modules/location/dto/participants.dto.ts diff --git a/src/modules/location/dto/participants.dto.ts b/src/modules/location/dto/participants.dto.ts new file mode 100644 index 0000000..a48600e --- /dev/null +++ b/src/modules/location/dto/participants.dto.ts @@ -0,0 +1,13 @@ +import { IsArray } from 'class-validator'; + +import { ApiProperty } from '@nestjs/swagger'; + +import { LocationDTO } from './update.dto'; + +export class ParticipantsDTO { + @ApiProperty({ + example: 'userid: LocationDTO[]', + }) + @IsArray() + 'userid': LocationDTO[]; +}