添加空调状态

This commit is contained in:
孙小云 2026-01-21 18:28:21 +08:00
parent be83f39c99
commit 37a439b624
2 changed files with 52 additions and 1 deletions

View File

@ -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