123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import 'dart:core';
- import 'package:fis_jsonrpc/client_base.dart';
- import 'package:fis_common/json_convert.dart';
- import 'vitalHealthExamBooking.m.dart';
- import 'liveConsultation.m.dart';
- class VitalHealthExamBookingService extends JsonRpcClientBase {
- VitalHealthExamBookingService(
- String host, {
- String serviceName = "IVitalHealthExamBookingService",
- Map<String, String>? headers,
- int? timeout,
- }) : super(
- host,
- serviceName,
- headers: headers,
- timeout: timeout,
- ) {
- /// 注册响应实体反序列化处理器
- FJsonConvert.setDecoder((map) => PageResult<HealthExamBookingDTO>.fromJson(map));
- FJsonConvert.setDecoder((map) => HealthExamBookingDTO.fromJson(map));
- FJsonConvert.setDecoder((map) => HealthExamPersonDTO.fromJson(map));
- FJsonConvert.setDecoder((map) => PageResult<RegisterInfoDTO>.fromJson(map));
- FJsonConvert.setDecoder((map) => RegisterInfoDTO.fromJson(map));
- }
- Future<PageResult<HealthExamBookingDTO>> getHealthExamBookingPageAsync(GetHealthExamBookingPageRequest request) async {
- var rpcRst = await call("GetHealthExamBookingPageAsync", request);
- var result = PageResult<HealthExamBookingDTO>.fromJson(rpcRst as Map<String, dynamic>);
- return result;
- }
- Future<String> saveHealthExamBookingAsync(SaveHealthExamBookingRequest request) async {
- var rpcRst = await call("SaveHealthExamBookingAsync", request);
- return rpcRst;
- }
- Future<HealthExamBookingDTO> getHealthExamBookingAsync(GetHealthExamBookingRequest request) async {
- var rpcRst = await call("GetHealthExamBookingAsync", request);
- var result = HealthExamBookingDTO.fromJson(rpcRst as Map<String, dynamic>);
- return result;
- }
- Future<bool> deleteHealthExamBookingAsync(DeleteHealthExamBookingRequest request) async {
- var rpcRst = await call("DeleteHealthExamBookingAsync", request);
- return rpcRst;
- }
- Future<bool> signUpASync(SignUpHealthExamBookingRequest request) async {
- var rpcRst = await call("SignUpASync", request);
- return rpcRst;
- }
- Future<HealthExamPersonDTO> getExamBookingByIDCardAsync(GetExamBookingByIDCardRequest request) async {
- var rpcRst = await call("GetExamBookingByIDCardAsync", request);
- var result = HealthExamPersonDTO.fromJson(rpcRst as Map<String, dynamic>);
- return result;
- }
- Future<String> addRegiterInfoAsync(AddRegiterInfoRequest request) async {
- var rpcRst = await call("AddRegiterInfoAsync", request);
- return rpcRst;
- }
- Future<bool> updateRegiterInfoAsync(UpdateRegiterInfoRequest request) async {
- var rpcRst = await call("UpdateRegiterInfoAsync", request);
- return rpcRst;
- }
- Future<PageResult<RegisterInfoDTO>> getRegisterInfoPageAsync(GetRegiterInfoPageRequest request) async {
- var rpcRst = await call("GetRegisterInfoPageAsync", request);
- var result = PageResult<RegisterInfoDTO>.fromJson(rpcRst as Map<String, dynamic>);
- return result;
- }
- }
|