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 客户类型(内贸客户 / 外贸客户) * *

对应字典 {@link cn.iocoder.yudao.module.crm.enums.DictTypeConstants#CRM_CUSTOMER_TYPE} * * @author mom */ @Getter @AllArgsConstructor public enum CrmCustomerTypeEnum implements ArrayValuable { 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; } }