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;
|
}
|
|
}
|