liyong
8 天以前 1ab2b329a40decba8ff7eefbeb158ff259aceb6d
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
package cn.iocoder.yudao.module.mes.enums.pro;
 
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
 
import java.util.Arrays;
 
/**
 * MES 时间单位枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum MesTimeUnitTypeEnum implements ArrayValuable<String> {
 
    MINUTE("MINUTE", "分钟"),
    HOUR("HOUR", "小时"),
    DAY("DAY", "天");
 
    public static final String[] ARRAYS = Arrays.stream(values()).map(MesTimeUnitTypeEnum::getType).toArray(String[]::new);
 
    /**
     * 类型值
     */
    private final String type;
    /**
     * 类型名
     */
    private final String name;
 
    @Override
    public String[] array() {
        return ARRAYS;
    }
 
}