promotion:增加优惠劵的回收操作

This commit is contained in:
YunaiV
2022-11-04 21:17:37 +08:00
parent 47c2dfa623
commit 873b530652
13 changed files with 96 additions and 9 deletions

View File

@ -25,5 +25,6 @@ public interface ErrorCodeConstants {
// ========== 优惠劵模板 1003005000 ==========
ErrorCode COUPON_NOT_EXISTS = new ErrorCode(1003005000, "优惠劵不存在");
ErrorCode COUPON_DELETE_FAIL_USED = new ErrorCode(1003005001, "回收优惠劵失败,优惠劵已被使用");
}

View File

@ -20,12 +20,12 @@ public enum CouponStatusEnum implements IntArrayValuable {
EXPIRE(3, "已过期"),
;
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CouponStatusEnum::getValue).toArray();
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CouponStatusEnum::getStatus).toArray();
/**
* 值
*/
private final Integer value;
private final Integer status;
/**
* 名字
*/