skyouc
14 小时以前 db0da79142146cd3de6e7fcca92dceeceb6d2665
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
package com.vincent.rsf.server.manager.enums;
 
/**
 * @author Ryan
 * @date 2025/9/4
 * @description: 站点类型
 * @version 1.0
 */
public enum StationTypeEnum {
    //站点类型
    STATION_TYPE_MUTI(0, "光电站点"),
    STATION_TYPE_NORMAL(1, "普通站点"),
            ;
    /**站点类型*/
    public Integer type;
    /**站点说明*/
    public String desc;
 
    StationTypeEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }
 
    public static String  getStationDesc(Integer type) {
        if (type.equals(STATION_TYPE_MUTI.type)) {
            return STATION_TYPE_MUTI.desc;
        } else if (type.equals(STATION_TYPE_NORMAL.type)) {
            return STATION_TYPE_NORMAL.desc;
        }
        return null;
    }
 
}