feat: 霸王餐优惠券使用

This commit is contained in:
2024-10-29 10:16:40 +08:00
parent ea025bd023
commit 2c27e96d92
3 changed files with 69 additions and 7 deletions

View File

@@ -83,5 +83,40 @@ public interface TableConstant {
}
}
class ActivateOutRecord {
@Getter
public enum Type {
// 满减
FULL_REDUCTION(1),
// 商品
PRODUCT(2);
private final Integer value;
Type(Integer value) {
this.value = value;
}
public boolean equalsVals(Integer value) {
return Objects.equals(this.value, value);
}
}
@Getter
public enum Status {
CREATE("create"),
CANCEL("cancel"),
// 商品
CLOSED("closed");
private final String value;
Status(String value) {
this.value = value;
}
public boolean equalsVals(String value) {
return this.value.equals(value);
}
}
}
}