-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from mju-likelion/feature/refactor-user-respon…
…se-dto-#81 Feature/#81 유저 정보 반환 ResponseDto 리팩토링
- Loading branch information
Showing
9 changed files
with
59 additions
and
73 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
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
21 changes: 0 additions & 21 deletions
21
src/main/java/com/example/mutsideout_mju/dto/response/user/ProfileResponseData.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/main/java/com/example/mutsideout_mju/dto/response/user/UserGradeResponseDto.java
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
src/main/java/com/example/mutsideout_mju/dto/response/user/UserInfoResponseDto.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,35 @@ | ||
package com.example.mutsideout_mju.dto.response.user; | ||
|
||
import com.example.mutsideout_mju.entity.User; | ||
import com.example.mutsideout_mju.entity.UserGrade; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
public class UserInfoResponseDto { | ||
private String email; | ||
private String name; | ||
private UserGrade userGrade; | ||
|
||
public static UserInfoResponseDto of(String email, String name, UserGrade userGrade) { | ||
return builder() | ||
.email(email) | ||
.userGrade(userGrade) | ||
.name(name) | ||
.build(); | ||
} | ||
|
||
public static UserInfoResponseDto of(String name, UserGrade userGrade) { | ||
return builder() | ||
.name(name) | ||
.userGrade(userGrade) | ||
.build(); | ||
} | ||
|
||
public static UserInfoResponseDto from(UserGrade userGrade) { | ||
return builder() | ||
.userGrade(userGrade) | ||
.build(); | ||
} | ||
} |
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
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