-
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.
- Loading branch information
Showing
5 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
9 changes: 4 additions & 5 deletions
9
src/main/java/com/example/mutsideout_mju/dto/response/user/ProfileResponseData.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
12 changes: 6 additions & 6 deletions
12
src/main/java/com/example/mutsideout_mju/dto/response/user/UserGradeResponseDto.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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package com.example.mutsideout_mju.dto.response.user; | ||
|
||
import com.example.mutsideout_mju.entity.Grade; | ||
import com.example.mutsideout_mju.entity.UserGrade; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
public class UserGradeResponseDto { | ||
private String name; | ||
private Grade grade; | ||
private UserGrade userGrade; | ||
|
||
public static UserGradeResponseDto of(String name, Grade grade) { | ||
public static UserGradeResponseDto of(String name, UserGrade userGrade) { | ||
return UserGradeResponseDto.builder() | ||
.name(name) | ||
.grade(grade) | ||
.userGrade(userGrade) | ||
.build(); | ||
} | ||
|
||
public static UserGradeResponseDto from(Grade grade) { | ||
public static UserGradeResponseDto from(UserGrade userGrade) { | ||
return UserGradeResponseDto.builder() | ||
.grade(grade) | ||
.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
2 changes: 1 addition & 1 deletion
2
.../example/mutsideout_mju/entity/Grade.java → ...mple/mutsideout_mju/entity/UserGrade.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package com.example.mutsideout_mju.entity; | ||
|
||
public enum Grade { | ||
public enum UserGrade { | ||
AVOCADO, | ||
BANANA, | ||
TOMATO | ||
|
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