diff --git a/src/api/his.ts b/src/api/his.ts index 323ab6a..166e3ad 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -52,6 +52,8 @@ import type { ReportSendQRcodeResponse, InputReportSendInfo, ReportSendInfoResponse, + InputExpressContact, + ReportSendAddressSaveResponse, } from './types'; /** @@ -416,3 +418,15 @@ export const getReportSendInfo = ( ).then(res => res.data); }; +/** + * 保存体检客户报告邮寄地址 + */ +export const saveReportSendAddress = ( + data: InputExpressContact +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/report-send-address-save`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index 89e42b5..4517c5a 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -882,3 +882,36 @@ export interface OutputReportSendInfo { */ export type ReportSendInfoResponse = CommonActionResult; +/** + * 保存体检客户报告邮寄地址入参 + */ +export interface InputExpressContact { + /** 体检ID */ + physical_exam_id: number; + /** 收件人 */ + address_contact: string; + /** 联系电话 */ + address_mobile: string; + /** 省份名称(例如:上海市) */ + province_name: string; + /** 城市名称(例如:上海市) */ + city_name: string; + /** 区县名称(例如:浦东新区) */ + country_name: string; + /** 寄送详细地址 */ + address_content: string; +} + +/** + * 保存体检客户报告邮寄地址出参 + */ +export interface OutputExpressContact { + /** 是否成功(1-成功 0-失败) */ + is_success?: number | null; +} + +/** + * 保存体检客户报告邮寄地址响应 + */ +export type ReportSendAddressSaveResponse = CommonActionResult; +