作业首页和机器状态的数据

This commit is contained in:
2026-11-06 08:41:44 +08:00
parent d882db7995
commit 85c83ec143
41 changed files with 3702 additions and 656 deletions

View File

@@ -19,3 +19,17 @@ enum WorkStatus {
working, // 作业中
paused, // 暂停中
}
/// 后端 workRecord.routeType(Java 枚举 RouteType):规划类型,保存打点时必填。
/// 缺失时后端返回「未选择规划类型」;code 必须与后端枚举 name() 完全一致。
/// 新版「地图与区域编辑」与旧版路径规划共用 /iot/workRecord/add,因此共用这一个定义。
enum RouteType {
mowingTask('MOWING_TASK', '割草任务'),
inspectionTask('INSPECTION_TASK', '巡检任务'),
// backToRestPoint('BACK_TO_REST_POINT', '返航任务'), // 暂不展示
other('OTHER', '其他类型');
final String code;
final String label;
const RouteType(this.code, this.label);
}