Skip to content

Commit

Permalink
feat: member/excel 엔드포인트 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed Apr 21, 2024
1 parent fbeebf4 commit 1346fe3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/member/member.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '모임 모든 회원 조회',
Expand Down Expand Up @@ -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);
}
}

0 comments on commit 1346fe3

Please sign in to comment.