tuqin
2026-11-03 9494075e6d9d2a4b2b884b4ed740dee0c434734c
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
37
38
39
package cn.iocoder.yudao.module.crm.enums.customer;
 
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
 
import java.util.Arrays;
 
/**
 * CRM 客户类型(内贸客户 / 外贸客户)
 *
 * <p>对应字典 {@link cn.iocoder.yudao.module.crm.enums.DictTypeConstants#CRM_CUSTOMER_TYPE}
 *
 * @author mom
 */
@Getter
@AllArgsConstructor
public enum CrmCustomerTypeEnum implements ArrayValuable<Integer> {
 
    DOMESTIC(1, "内贸客户"),
    FOREIGN(2, "外贸客户");
 
    public static final Integer[] ARRAYS = Arrays.stream(values()).map(CrmCustomerTypeEnum::getType).toArray(Integer[]::new);
 
    /**
     * 类型
     */
    private final Integer type;
    /**
     * 类型名
     */
    private final String name;
 
    @Override
    public Integer[] array() {
        return ARRAYS;
    }
 
}