空洞逻辑
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
// 保存工作记录
|
||||
|
||||
Reference in New Issue
Block a user