-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
회원 정보 조회 시 응답 수정
- Loading branch information
Showing
4 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/com/mju/capstone/member/dto/response/MemberInfoResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.mju.capstone.member.dto.response; | ||
|
||
import com.mju.capstone.auth.repository.entity.Role; | ||
import com.mju.capstone.global.security.util.SecurityUtil; | ||
import com.mju.capstone.member.entity.Member; | ||
import com.mju.capstone.member.repository.MemberRepository; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(description = "사용자 정보 조회 응답") | ||
public record MemberInfoResponse( | ||
Long memberId, | ||
String email, | ||
Role role, | ||
String nickName, | ||
int birth, | ||
int height, | ||
int weight, | ||
int level, | ||
int dietLevel) { | ||
|
||
public static MemberInfoResponse from(Long memberId, String email, Role role, String nickName, int birth, int height, int weight, int level, int dietLevel) { | ||
return new MemberInfoResponse(memberId, email, role, nickName, birth, height, weight, level, dietLevel); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters