Skip to content

Commit 70d2618

Browse files
authored
refactor: 사용하지 않는 imagePath 필드 제거 (#129)
1 parent c39e119 commit 70d2618

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

src/main/java/com/back/domain/user/dto/UserDto.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public class UserDto {
1717
private Long id;
1818
private String email;
1919
private String nickname;
20-
private String profileImgUrl;
2120
private Double abvDegree;
2221
private LocalDateTime createdAt;
2322
private LocalDateTime updatedAt;
@@ -29,7 +28,6 @@ public static UserDto from(User user) {
2928
.id(user.getId())
3029
.email(user.getEmail())
3130
.nickname(user.getNickname())
32-
// .profileImgUrl(user.getProfileImgUrl())
3331
.abvDegree(user.getAbvDegree())
3432
.createdAt(user.getCreatedAt())
3533
.updatedAt(user.getUpdatedAt())
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
package com.back.domain.user.enums;
22

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

1111
public final int code;
1212
public final int min, max;
13-
public final String imagePath;
1413

15-
AbvLevel(int code, int min, int max, String imagePath) {
14+
AbvLevel(int code, int min, int max) {
1615
this.code = code;
1716
this.min = min;
1817
this.max = max;
19-
this.imagePath = imagePath;
2018
}
2119

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

0 commit comments

Comments
 (0)