所有一级页面和不分二级页面
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:fpdart/fpdart.dart';
|
||||
|
||||
import '../../../../core/error/failure.dart';
|
||||
import '../../../../core/error/failure.dart' as core_error;
|
||||
import '../../../auth/domain/errors/auth_failure.dart';
|
||||
import '../../data/models/device_add_path_point_model.dart';
|
||||
import '../../data/models/device_work_area_param_model.dart';
|
||||
@@ -33,7 +34,7 @@ class GeneratePathUseCaseImpl implements GeneratePathUseCase {
|
||||
final result = await _repository.generatePath(reference: reference, heading: heading, outer: outer, holes: holes, workType: workType);
|
||||
return Right(result); // 成功时返回 Right
|
||||
} catch (e) {
|
||||
return Left(ServerFailure(e.toString(), 1)); // 失败时返回 Left
|
||||
return Left(core_error.ServerFailure(e.toString())); // 失败时返回 Left
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user