| | |
| | | package com.iailab.module.system.enums.social; |
| | | |
| | | import cn.hutool.core.util.ArrayUtil; |
| | | import com.iailab.framework.common.core.IntArrayValuable; |
| | | import com.iailab.framework.common.core.ArrayValuable; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum SocialTypeEnum implements IntArrayValuable { |
| | | public enum SocialTypeEnum implements ArrayValuable { |
| | | |
| | | /** |
| | | * Gitee |
| | |
| | | WECHAT_MINI_APP(34, "WECHAT_MINI_APP"), |
| | | ; |
| | | |
| | | public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(SocialTypeEnum::getType).toArray(); |
| | | public static final Integer[] ARRAYS = Arrays.stream(values()).map(SocialTypeEnum::getType).toArray(Integer[]::new); |
| | | |
| | | /** |
| | | * 类型 |
| | |
| | | private final String source; |
| | | |
| | | @Override |
| | | public int[] array() { |
| | | public Integer[] array() { |
| | | return ARRAYS; |
| | | } |
| | | |