21 lines
688 B
Dart
Executable File
21 lines
688 B
Dart
Executable File
|
|
import 'dart:async';
|
|
|
|
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{
|
|
final TransferSmartLockEntity entity = await ApiRepository.to.getTransferLockListData(searchStr: state.searchController.text);
|
|
if(entity.errorCode!.codeIsSuccessful){
|
|
state.transferSmartLockListData.value = entity.data!.list!;
|
|
}
|
|
return entity;
|
|
}
|
|
|
|
} |