添加舱门状态
This commit is contained in:
parent
964a8427a1
commit
622504aff4
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.ruoyi.device.api.enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 舱门状态枚举
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-21
|
||||||
|
*/
|
||||||
|
public enum CabinDoorStatusEnum {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关闭
|
||||||
|
*/
|
||||||
|
CLOSED("CLOSED", "关闭"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打开
|
||||||
|
*/
|
||||||
|
OPEN("OPEN", "打开"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 半开
|
||||||
|
*/
|
||||||
|
HALF_OPEN("HALF_OPEN", "半开"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 舱盖状态异常
|
||||||
|
*/
|
||||||
|
ABNORMAL("ABNORMAL", "舱盖状态异常");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
CabinDoorStatusEnum(String code, String description) {
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6e538bd4cb40e9365a8b341859efa6bba795c993
|
Subproject commit ec5dba7fc59bafbfb8d2c52224adb9fec6be31e5
|
||||||
Loading…
Reference in New Issue