File tree Expand file tree Collapse file tree
src/main/java/com/example/FixLog Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import com .example .FixLog .dto .Response ;
55import com .example .FixLog .dto .WithdrawRequestDto ;
66import com .example .FixLog .dto .member .MemberInfoResponseDto ;
7+ import com .example .FixLog .dto .member .ProfilePreviewResponseDto ;
78import com .example .FixLog .dto .member .SignupRequestDto ;
89import com .example .FixLog .dto .member .DuplicateCheckResponseDto ;
910import com .example .FixLog .service .MemberService ;
@@ -51,6 +52,16 @@ public ResponseEntity<Response<MemberInfoResponseDto>> getMyInfo(@Authentication
5152 return ResponseEntity .ok (Response .success ("회원 정보 조회 성공" , responseDto ));
5253 }
5354
55+ @ GetMapping ("/profile-preview" )
56+ public ResponseEntity <Response <ProfilePreviewResponseDto >> getProfilePreview () {
57+ Member member = memberService .getCurrentMemberInfo ();
58+ ProfilePreviewResponseDto dto = new ProfilePreviewResponseDto (
59+ member .getNickname (),
60+ member .getProfileImageUrl ()
61+ );
62+ return ResponseEntity .ok (Response .success ("닉네임&프로필사진 조회 성공" , dto ));
63+ }
64+
5465 @ DeleteMapping ("/me" )
5566 public ResponseEntity <Response <Void >> withdraw (
5667 @ AuthenticationPrincipal Member member ,
Original file line number Diff line number Diff line change 1+ package com .example .FixLog .dto .member ;
2+
3+ import lombok .AllArgsConstructor ;
4+ import lombok .Getter ;
5+
6+ @ Getter
7+ @ AllArgsConstructor
8+ public class ProfilePreviewResponseDto {
9+ private String nickname ;
10+ private String profileImageUrl ;
11+ }
You can’t perform that action at this time.
0 commit comments