25 lines
611 B
Dart
Raw Normal View History

2024-04-25 10:43:56 +08:00
import 'package:star_lock/network/api_repository.dart';
2023-11-18 10:38:13 +08:00
import 'package:star_lock/tools/baseGetXController.dart';
import 'videoLog_state.dart';
2024-04-25 10:43:56 +08:00
class VideoLogLogic extends BaseGetXController {
2023-11-18 10:38:13 +08:00
VideoLogState state = VideoLogState();
2024-04-25 10:43:56 +08:00
void getLockCloudStorageList() async {
var entity = await ApiRepository.to.getLockCloudStorageList(
lockId: state.getLockId.value,
);
if (entity.errorCode!.codeIsSuccessful) {
state.videoLogList.value = entity.data!;
2024-04-25 10:43:56 +08:00
state.videoLogList.refresh();
}
}
@override
onReady() {
super.onReady();
getLockCloudStorageList();
}
2024-04-25 10:43:56 +08:00
}