package cn.iocoder.yudao.module.aftersales.enums; import cn.iocoder.yudao.framework.common.core.ArrayValuable; import lombok.Getter; import lombok.RequiredArgsConstructor; import java.util.Arrays; /** * 售后维修状态枚举 */ @RequiredArgsConstructor @Getter public enum AfterSaleRepairStatusEnum implements ArrayValuable { PENDING(0, "待处理"), IN_PROGRESS(10, "维修中"), COMPLETED(20, "已完成"), CLOSED(30, "已关闭"); public static final Integer[] ARRAYS = Arrays.stream(values()) .map(AfterSaleRepairStatusEnum::getStatus).toArray(Integer[]::new); private final Integer status; private final String name; @Override public Integer[] array() { return ARRAYS; } }