添加空调状态
This commit is contained in:
parent
be83f39c99
commit
37a439b624
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.ruoyi.device.api.enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 空调状态枚举
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-20
|
||||||
|
*/
|
||||||
|
public enum AirConditionerStatusEnum {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 空闲模式
|
||||||
|
*/
|
||||||
|
IDLE("IDLE", "空闲模式"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 制冷模式
|
||||||
|
*/
|
||||||
|
COOLING("COOLING", "制冷模式"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 制热模式
|
||||||
|
*/
|
||||||
|
HEATING("HEATING", "制热模式"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 除湿模式
|
||||||
|
*/
|
||||||
|
DEHUMIDIFYING("DEHUMIDIFYING", "除湿模式");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
AirConditionerStatusEnum(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 833c8e5cec48b390f0c3b20385fb0887bfaba071
|
Subproject commit 372a289cf7bdfcd2236fb7c72ca374673d408e70
|
||||||
Loading…
Reference in New Issue