Skip to content

Commit

Permalink
fix: [#59] enum 클래스에 lombok @Getter 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
rxdcxdrnine committed Apr 29, 2022
1 parent 57373b8 commit c8b7186
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
@@ -1,9 +1,11 @@
package com.codesquad.sidedish.other;

import com.codesquad.sidedish.exception.BusinessException;
import com.codesquad.sidedish.exception.ErrorCode;
import com.codesquad.sidedish.exception.unchecked.BusinessException;
import java.util.Arrays;
import lombok.Getter;

@Getter
public enum DeliveryPolicy {
CAPITAL_DAYBREAK("서울 경기 새벽 배송", "DL001"),
COUNTRY_PARCEL("전국 택배 배송", "DL002");
Expand All @@ -23,11 +25,4 @@ public static DeliveryPolicy from(String code) {
.orElseThrow(() -> new BusinessException(ErrorCode.DELIVERY_NOT_FOUND));
}

public String getDetail() {
return detail;
}

public String getCode() {
return code;
}
}
@@ -1,9 +1,11 @@
package com.codesquad.sidedish.other;

import com.codesquad.sidedish.exception.ErrorCode;
import com.codesquad.sidedish.exception.NotFoundException;
import com.codesquad.sidedish.exception.unchecked.NotFoundException;
import java.util.Arrays;
import lombok.Getter;

@Getter
public enum DiscountPolicy {
LAUNCHING("런칭특가", "DC001", 0.2),
EVENT("이벤트특가", "DC002", 0.1);
Expand All @@ -25,15 +27,4 @@ public static DiscountPolicy from(String code) {
.orElseThrow(() -> new NotFoundException(ErrorCode.DISCOUNT_NOT_FOUND));
}

public String getDetail() {
return detail;
}

public String getCode() {
return code;
}

public double getRate() {
return rate;
}
}

0 comments on commit c8b7186

Please sign in to comment.