From 1346fe323f14391c44bc77fe8cb641fdc75c6435 Mon Sep 17 00:00:00 2001 From: w8385 Date: Mon, 22 Apr 2024 00:22:14 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20member/excel=20=EC=97=94=EB=93=9C?= =?UTF-8?q?=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/member/member.controller.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/member/member.controller.ts b/src/member/member.controller.ts index 30ea9fb..410beba 100644 --- a/src/member/member.controller.ts +++ b/src/member/member.controller.ts @@ -53,6 +53,19 @@ export class MemberController { return this.memberService.createGroupMembers(groupId, createMemberDto); } + @Post('/excel') + @ApiOperation({ + summary: '모임 회원 명단 업로드', + description: '모임 회원 명단을 재구성합니다.', + }) + @ApiFile('excel') + uploadMemberFIle( + @Param('groupId') groupId: string, + @UploadedFile() excel: Express.Multer.File, + ) { + return this.memberService.uploadMemberFile(groupId, excel); + } + @Get() @ApiOperation({ summary: '모임 모든 회원 조회', @@ -142,17 +155,4 @@ export class MemberController { deleteAllGroupMembers(@Param('groupId') groupId: string) { return this.memberService.deleteAllGroupMembers(groupId); } - - @Post('/upload/excel') - @ApiOperation({ - summary: '회원 명단 업로드', - description: '회원 명단을 재구성합니다.', - }) - @ApiFile('excel') - async uploadMemberFIle( - @Param('groupId') groupId: string, - @UploadedFile() excel: Express.Multer.File, - ) { - return await this.memberService.uploadMemberFile(groupId, excel); - } }