38 lines
897 B
Dart
Executable File
38 lines
897 B
Dart
Executable File
|
|
import 'package:star_lock/tools/baseGetXController.dart';
|
|
import '../../../../network/api_repository.dart';
|
|
import 'transferSmartLock_entity.dart';
|
|
import 'transferSmartLock_state.dart';
|
|
|
|
class TransferSmartLockLogic extends BaseGetXController{
|
|
TransferSmartLockState state = TransferSmartLockState();
|
|
|
|
// 获取锁列表
|
|
Future<TransferSmartLockEntity> getTransferLockListData() async{
|
|
var entity = await ApiRepository.to.getTransferLockListData();
|
|
if(entity.errorCode!.codeIsSuccessful){
|
|
state.transferSmartLockListData.value = entity.data!.list!;
|
|
}
|
|
return entity;
|
|
}
|
|
|
|
@override
|
|
void onReady() {
|
|
// TODO: implement onReady
|
|
super.onReady();
|
|
// getTransferLockListData();
|
|
}
|
|
|
|
@override
|
|
void onInit() {
|
|
// TODO: implement onInit
|
|
super.onInit();
|
|
}
|
|
|
|
@override
|
|
void onClose() {
|
|
// TODO: implement onClose
|
|
super.onClose();
|
|
|
|
}
|
|
} |