import 'package:fis_jsonrpc/rpc.dart'; import 'package:vitalapp/managers/interfaces/service_pack.dart'; import 'package:vitalapp/rpc.dart'; import 'package:fis_common/logger/logger.dart'; import 'package:vitalapp/store/store.dart'; class ServicePackManager implements IServicePackManager { @override Future?> getServicePackList( ServicePackPageRequest request) async { try { request.token = Store.user.token; final result = await rpc.vitalServicePack.getServicePackPageAsync(request); return result; } catch (e) { logger.e("getServicePackPageAsync query patient paged list error.", e); return null; } } @override Future?> getServiceItemList( PageRequest request) async { try { request.token = Store.user.token; final result = await rpc.vitalServicePack.getServiceItemPageAsync(request); print(result); return result; } catch (e) { logger.e("getServiceItemList query patient paged list error.", e); return null; } } }