25 lines
611 B
Dart
Executable File
25 lines
611 B
Dart
Executable File
import 'package:star_lock/network/api_repository.dart';
|
|
import 'package:star_lock/tools/baseGetXController.dart';
|
|
import 'videoLog_state.dart';
|
|
|
|
class VideoLogLogic extends BaseGetXController {
|
|
VideoLogState state = VideoLogState();
|
|
|
|
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();
|
|
}
|
|
}
|
|
|
|
@override
|
|
onReady() {
|
|
super.onReady();
|
|
|
|
getLockCloudStorageList();
|
|
}
|
|
}
|