From eb5bb7cb8dab3f63bca28cecdbdf9ab82ac13d9f Mon Sep 17 00:00:00 2001 From: sieunnnn Date: Sat, 11 Nov 2023 17:17:02 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=9C=A0=EC=A0=80=EC=9D=98=20=EC=9D=BC?= =?UTF-8?q?=EB=B6=80=20=EC=A0=95=EB=B3=B4=EB=A7=8C=20=EC=BA=90=EC=8B=B1?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD=20(#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v2/domain/user/controller/UserInfoController.java | 7 ++++++- .../java/com/travelplanner/v2/domain/user/domain/User.java | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/travelplanner/v2/domain/user/controller/UserInfoController.java b/src/main/java/com/travelplanner/v2/domain/user/controller/UserInfoController.java index 21e68fc..d171b48 100644 --- a/src/main/java/com/travelplanner/v2/domain/user/controller/UserInfoController.java +++ b/src/main/java/com/travelplanner/v2/domain/user/controller/UserInfoController.java @@ -3,7 +3,10 @@ import com.travelplanner.v2.domain.user.cache.UserDTO; import com.travelplanner.v2.domain.user.cache.UserInfoService; import com.travelplanner.v2.domain.user.domain.User; +import com.travelplanner.v2.domain.user.dto.response.ProfileResponse; import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.responses.ApiResponses; import io.swagger.v3.oas.annotations.tags.Tag; @@ -34,7 +37,9 @@ public ResponseEntity getUserInfo() { @Operation(summary = "유저 정보 갱신") @ApiResponses(value = { - @ApiResponse(responseCode = "200", description = "유저 정보 갱신 성공"), + @ApiResponse(responseCode = "200", description = "유저 정보 갱신 성공", + content = @Content(schema = @Schema(implementation = UserDTO.class))), + }) @GetMapping(value = "/me/reload") public ResponseEntity reloadUserInfo() { diff --git a/src/main/java/com/travelplanner/v2/domain/user/domain/User.java b/src/main/java/com/travelplanner/v2/domain/user/domain/User.java index e8d27b4..59b62bc 100644 --- a/src/main/java/com/travelplanner/v2/domain/user/domain/User.java +++ b/src/main/java/com/travelplanner/v2/domain/user/domain/User.java @@ -36,7 +36,6 @@ public class User implements Serializable { // 레디스에 유저정보를 캐 @Email private String email; - @JsonIgnore private String password; @Enumerated(EnumType.STRING)