Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/main/java/com/back/domain/user/dto/UserDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class UserDto {
private Long id;
private String email;
private String nickname;
private String profileImgUrl;
private Double abvDegree;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
Expand All @@ -29,7 +28,6 @@ public static UserDto from(User user) {
.id(user.getId())
.email(user.getEmail())
.nickname(user.getNickname())
// .profileImgUrl(user.getProfileImgUrl())
.abvDegree(user.getAbvDegree())
.createdAt(user.getCreatedAt())
.updatedAt(user.getUpdatedAt())
Expand Down
18 changes: 8 additions & 10 deletions src/main/java/com/back/domain/user/enums/AbvLevel.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
package com.back.domain.user.enums;

public enum AbvLevel {
L1(1, 5, 10, "/img/grade/1.png"),
L2(2, 11, 25, "/img/grade/2.png"),
L3(3, 26, 45, "/img/grade/3.png"),
L4(4, 46, 65, "/img/grade/4.png"),
L5(5, 66, 85, "/img/grade/5.png"),
L6(6, 86, 100, "/img/grade/6.png");
L1(1, 5, 10),
L2(2, 11, 25),
L3(3, 26, 45),
L4(4, 46, 65),
L5(5, 66, 85),
L6(6, 86, 100);

public final int code;
public final int min, max;
public final String imagePath;

AbvLevel(int code, int min, int max, String imagePath) {
AbvLevel(int code, int min, int max) {
this.code = code;
this.min = min;
this.max = max;
this.imagePath = imagePath;
}

/**
Expand All @@ -29,4 +27,4 @@ public static AbvLevel of(int percent) {
}
return L1; // 5% 미만도 기본적으로 L1 처리
}
}
}