路径规划作业列表 其余界面优化
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user