41 lines
785 B
Dart
41 lines
785 B
Dart
import '../../network/api_repository.dart';
|
|
import '../../tools/baseGetXController.dart';
|
|
import 'lockMain_state.dart';
|
|
|
|
class LockMainLogic extends BaseGetXController {
|
|
final LockMainState state = LockMainState();
|
|
|
|
void getLockInfo() async{
|
|
var entity = await ApiRepository.to.getLockInfo(
|
|
lastUpdateDate:DateTime.now().millisecondsSinceEpoch.toString(),
|
|
pageNo:"1",
|
|
);
|
|
if(entity.errorCode!.codeIsSuccessful){
|
|
|
|
}
|
|
}
|
|
|
|
@override
|
|
void onReady() {
|
|
// TODO: implement onReady
|
|
super.onReady();
|
|
print("onReady()");
|
|
|
|
}
|
|
|
|
@override
|
|
void onInit() {
|
|
// TODO: implement onInit
|
|
super.onInit();
|
|
print("onInit()");
|
|
|
|
getLockInfo();
|
|
}
|
|
|
|
@override
|
|
void onClose() {
|
|
// TODO: implement onClose
|
|
super.onClose();
|
|
}
|
|
|
|
} |