Skip to content

Commit

Permalink
Fix: 유저의 일부 정보만 캐싱하도록 변경 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
sieunnnn committed Nov 11, 2023
1 parent 952ca39 commit eb5bb7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -34,7 +37,9 @@ public ResponseEntity<UserDTO> 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<UserDTO> reloadUserInfo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public class User implements Serializable { // 레디스에 유저정보를 캐
@Email
private String email;

@JsonIgnore
private String password;

@Enumerated(EnumType.STRING)
Expand Down

0 comments on commit eb5bb7c

Please sign in to comment.