29 lines
912 B
Dart
Executable File
29 lines
912 B
Dart
Executable File
import 'package:star_lock/network/api_repository.dart';
|
|
import 'package:star_lock/tools/baseGetXController.dart';
|
|
import 'editVideoLog_state.dart';
|
|
|
|
class EditVideoLogLogic extends BaseGetXController {
|
|
EditVideoLogState state = EditVideoLogState();
|
|
|
|
void deleteLockCloudStorageList() async {
|
|
var entity = await ApiRepository.to.deleteLockCloudStorageList(
|
|
recordIds: state.selectVideoLogList.value.map((e) => e.recordId).toList(),
|
|
);
|
|
if (entity.errorCode!.codeIsSuccessful) {
|
|
state.selectVideoLogList.value.clear();
|
|
showToast('删除成功');
|
|
getLockCloudStorageList();
|
|
}
|
|
}
|
|
|
|
void getLockCloudStorageList() async {
|
|
var entity = await ApiRepository.to.getLockCloudStorageList(
|
|
lockId: state.getLockId.value,
|
|
);
|
|
if (entity.errorCode!.codeIsSuccessful) {
|
|
state.videoLogList.value = entity.data!;
|
|
state.videoLogList.refresh();
|
|
}
|
|
}
|
|
}
|