示例#1
0
 public ApiResult <CardQueryResponse> CardQuery(CardQueryRequest request)
 {
     return(this.DoApiResult(
                proxyService.DoTrans <HModels.Hosp1002Request, HModels.Hosp1002Response, CardQueryRequest, CardQueryResponse>(
                    request,
                    p => new HModels.Hosp1002Request
     {
         idCard = p.idCard,
         mCardNo = p.cardNo,
         mType = p.cardType,
         queryType = p.queryType,
         realName = p.name
     },
                    p => new CardQueryResponse
     {
         birthday = p.data?.birthday,
         cardNo = p.data?.cardNo,
         linkmanAdd = p.data?.linkman_add,
         linkmanName = p.data?.linkman_name,
         linkmanTel = p.data?.linkman_tel,
         name = p.data?.name,
         pactCode = p.data?.pactCode,
         sex = p.data?.sex,
         vacancy = p.data?.vacancy
     })));
 }
示例#2
0
 public ApiResult <CardQueryData> Query(CardQueryRequest request)
 {
     return(Runner.Execute(service.CardQuery, request));
 }