Skip to content

Commit

Permalink
Merge pull request #70 from kduoh99/refactor/#58
Browse files Browse the repository at this point in the history
Refactor: 마일리지 타입 변경
  • Loading branch information
kduoh99 authored Aug 13, 2024
2 parents 4b98d48 + e66a9fa commit 5690914
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Member {
private String name;

@Column(name = "MILEAGE", nullable = false)
private Integer mileage;
private int mileage;

@Enumerated(EnumType.STRING)
@Column(name = "LOGIN_TYPE", nullable = false)
Expand Down Expand Up @@ -66,7 +66,7 @@ public class Member {
private List<Order> orders = new ArrayList<>();

@Builder
private Member(String email, String password, String name, Integer mileage, LoginType loginType, RoleType roleType) {
private Member(String email, String password, String name, int mileage, LoginType loginType, RoleType roleType) {
this.email = email;
this.password = password;
this.name = name;
Expand All @@ -79,7 +79,7 @@ public void updateInfo(String name) {
this.name = name;
}

public void updateMileage(Integer mileageIncrement) {
public void updateMileage(int mileageIncrement) {
this.mileage += mileageIncrement;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public record MemberInfoResDto(
String email,
String name,
long mileage,
int mileage,
String loginType
) {
public static MemberInfoResDto of(Member member) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@RequiredArgsConstructor(access = AccessLevel.PROTECTED)
public class AttendanceService {

private static final Integer MILEAGE_INCREMENT = 3;
private static final int MILEAGE_INCREMENT = 3;

private final AttendanceRepository attendanceRepository;
private final MemberRepository memberRepository;
Expand Down

0 comments on commit 5690914

Please sign in to comment.