From 27afa601eec207490da4cd24a91e40efea25cfef Mon Sep 17 00:00:00 2001 From: Gyuhyeok99 <126947828+Gyuhyeok99@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:22:59 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=9C=A0=EC=A0=80=EC=9D=98=20=ED=98=84?= =?UTF-8?q?=EC=9E=AC=20=ED=95=99=EA=B8=B0=20=EC=88=98=EC=A0=95=20API=20?= =?UTF-8?q?=EC=8A=A4=EC=9B=A8=EA=B1=B0=20=EB=AA=85=EC=84=B8=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(#98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UMC/campusNote/user/controller/UserController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/UMC/campusNote/user/controller/UserController.java b/src/main/java/UMC/campusNote/user/controller/UserController.java index 1d3374e..b7b6d22 100644 --- a/src/main/java/UMC/campusNote/user/controller/UserController.java +++ b/src/main/java/UMC/campusNote/user/controller/UserController.java @@ -5,6 +5,8 @@ import UMC.campusNote.user.dto.UserResponseDTO; import UMC.campusNote.user.entity.User; import UMC.campusNote.user.service.UserService; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.responses.ApiResponses; import lombok.RequiredArgsConstructor; import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.web.bind.annotation.*; @@ -24,7 +26,12 @@ public ApiResponse get() { return ApiResponse.onSuccess("GET:: user controller"); } + @PatchMapping("/attended-semester") + @Operation(summary = "유저의 수강 학기 수정 API",description = "유저의 수강 학기 수정 API입니다.") + @ApiResponses({ + @io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "ATTENDED_SEMESTER200",description = "수강 학기 업데이트 성공"), + }) public ApiResponse updateAttendedSemester(@AuthenticationPrincipal User user, @RequestBody UserRequestDTO.AttendedSemesterUpdateDTO request) { return ApiResponse.of(ATTENDED_SEMESTER_UPDATE ,userService.updateAttendedSemester(user.getId(), request)); }