修改获取机场状态的代码

This commit is contained in:
孙小云 2026-01-21 15:58:12 +08:00
parent 2ea9f1f35c
commit 9834d45357
3 changed files with 60 additions and 9 deletions

View File

@ -9,24 +9,29 @@ package com.ruoyi.device.api.enums;
public enum DockStatusEnum {
/**
* 空闲
* 空闲
*/
IDLE("IDLE", "空闲"),
IDLE("IDLE", "空闲"),
/**
* 任务中
* 现场调试/远程调试
*/
IN_MISSION("IN_MISSION", "任务中"),
Debugging("Debugging", "现场调试/远程调试"),
/**
* 在线
* 固件升级中
*/
ONLINE("ONLINE", "在线"),
FIRMWARE_UPGRADING("Upgrading", "固件升级中"),
/**
* 离线
* 作业中
*/
OFFLINE("OFFLINE", "离线");
WORKING("Working", "作业中"),
/**
* 待标定/未知
*/
UNKNOWN("UNKNOWN", "待标定");
private final String code;
private final String description;

View File

@ -0,0 +1,46 @@
package com.ruoyi.device.api.enums;
/**
* 挂载类型枚举
*
* @author ruoyi
* @date 2026-01-21
*/
public enum PayloadType {
/**
* 喊话器
*/
SPEAKER("SPEAKER", "喊话器"),
/**
* 相机
*/
CAMERA("CAMERA", "相机"),
/**
* 其他挂载
*/
OTHER("OTHER", "其他");
private final String code;
private final String description;
PayloadType(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 cb1c303a6cbb95ab8660415fae064d85d874ebcb
Subproject commit 624936dffcd8b2509468d4f1e403f6e49fb7650a