路径规划作业列表 其余界面优化

This commit is contained in:
mmc
2026-02-27 13:17:09 +08:00
parent e690ec7993
commit 6e6986a49a
14 changed files with 625 additions and 360 deletions

View File

@@ -11,11 +11,16 @@ abstract class DeviceRepository {
String deviceId,
String deviceAlias,
);
Future<Either<DeviceFailure, int>> unBindDevice(String deviceId);
Future<Either<DeviceFailure, int>> unBindDevice(
String deviceId,
String deviceName,
);
Future<Either<DeviceFailure, int>> switchDevice(
String platform,
String deviceId,
);
// 获取设备位置
Future<Either<DeviceFailure, DeviceLocationEntity>> getDeviceLocation(String username);
Future<Either<DeviceFailure, DeviceLocationEntity>> getDeviceLocation(
String username,
);
}

View File

@@ -10,12 +10,13 @@ class UnbindDeviceUseCase implements BaseUseCase<int, UnbindDeviceParams> {
@override
Future<Either<Failure, int>> call(UnbindDeviceParams params) async {
return await repository.unBindDevice(params.deviceId);
return await repository.unBindDevice(params.deviceId, params.deviceName);
}
}
class UnbindDeviceParams {
final String deviceId;
final String deviceName;
UnbindDeviceParams(this.deviceId);
UnbindDeviceParams(this.deviceId, this.deviceName);
}