xiaoyi
3 天以前 abf1c0a35d85d38239ff5d2ed746a4e4b797c9d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 AfterSaleIssueTypeEnum implements ArrayValuable<Integer> {
 
    UNCLASSIFIED(0, "未判定"),
    GENERAL(1, "一般问题"),
    REPAIR(2, "维修问题"),
    RETURN(3, "退货问题"),
    POWER_OUTAGE_REPAIR(4, "停电报修"),
    POWER_FAULT(5, "用电故障"),
    SERVICE_COMPLAINT(6, "服务投诉"),
    POWER_QUALITY_DISPUTE(7, "供电质量异议");
 
    public static final Integer[] ARRAYS = Arrays.stream(values())
            .map(AfterSaleIssueTypeEnum::getType).toArray(Integer[]::new);
 
    private final Integer type;
    private final String name;
 
    @Override
    public Integer[] array() {
        return ARRAYS;
    }
 
}