空洞逻辑

This commit is contained in:
mmc
2026-03-02 13:25:21 +08:00
parent 991c4fe174
commit fe9b763783
4 changed files with 300 additions and 168 deletions

View File

@@ -12,9 +12,7 @@ import '../models/device_work_area_param_model.dart';
class PathRepositoryImpl implements PathRepository {
final PathHttpDatasource _datasource;
PathRepositoryImpl({
required PathHttpDatasource datasource,
}) : _datasource = datasource;
PathRepositoryImpl({required PathHttpDatasource datasource}) : _datasource = datasource;
// 生成路径
@override
Future<List<DeviceAddPathPointModel>> generatePath({
@@ -28,11 +26,11 @@ class PathRepositoryImpl implements PathRepository {
'reference': reference.toJson(),
'heading': heading,
'outer': outer.toJson(),
'holes': holes.map((h) => h.toJson()).toList(),
'holes': holes.map((hole) => hole.toJson()).toList(),
'workType': workType,
};
return await _datasource.generatePathRaw(body: body);
return await _datasource.generatePathRaw(body: body);
}
// 保存工作记录