集成 获取用户设备的作业列表/删除作业列表/添加作业区域

This commit is contained in:
2026-02-26 16:20:02 +08:00
parent de093bc867
commit 0fa3d2351b
9 changed files with 274 additions and 14 deletions

View File

@@ -0,0 +1,47 @@
class ReferencePoint {
final double lat;
final double lon;
ReferencePoint({required this.lat, required this.lon});
Map<String, dynamic> toJson() => {
'lat': lat,
'lon': lon,
};
}
class OuterBoundary {
final List<Position> position;
final double sideWidth;
OuterBoundary({required this.position, required this.sideWidth});
Map<String, dynamic> toJson() => {
'position': position.map((p) => p.toJson()).toList(),
'sideWidth': sideWidth,
};
}
class HoleBoundary {
final List<Position> position;
final double sideWidth;
HoleBoundary({required this.position, required this.sideWidth});
Map<String, dynamic> toJson() => {
'position': position.map((p) => p.toJson()).toList(),
'sideWidth': sideWidth,
};
}
class Position {
final double lat;
final double lon;
Position({required this.lat, required this.lon});
Map<String, dynamic> toJson() => {
'lat': lat,
'lon': lon,
};
}