From 73f2989f91cb826223b9758fa95e4d22378b3276 Mon Sep 17 00:00:00 2001 From: 2swo Date: Mon, 18 Mar 2024 00:01:03 +0900 Subject: [PATCH] refactor(#317) mentorBoardImage decorator body --- .../patch-mentor-board-images-decorators.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/boards/swagger-decorators/mentorBoard/patch-mentor-board-images-decorators.ts b/src/boards/swagger-decorators/mentorBoard/patch-mentor-board-images-decorators.ts index 4cc27c10..56815e20 100644 --- a/src/boards/swagger-decorators/mentorBoard/patch-mentor-board-images-decorators.ts +++ b/src/boards/swagger-decorators/mentorBoard/patch-mentor-board-images-decorators.ts @@ -1,6 +1,7 @@ import { applyDecorators } from '@nestjs/common'; import { ApiBearerAuth, + ApiBody, ApiOperation, ApiParam, ApiResponse, @@ -80,5 +81,16 @@ export function ApiUpdateMentorBoardImage() { }), ApiBearerAuth('access-token'), ApiParam({ name: 'mentorBoardId', example: 1 }), + ApiBody({ + schema: { + type: 'form-data', + properties: { + files: { type: 'file' }, + }, + example: { + files: '고양이.png', + }, + }, + }), ); }