添加保存体检客户报告邮寄地址

This commit is contained in:
xianyi
2025-12-25 09:54:28 +08:00
parent 96de419e52
commit 29d1ea035c
2 changed files with 47 additions and 0 deletions

View File

@@ -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<ReportSendAddressSaveResponse> => {
return request.post<ReportSendAddressSaveResponse>(
`${MEDICAL_EXAM_BASE_PATH}/report-send-address-save`,
data
).then(res => res.data);
};

View File

@@ -882,3 +882,36 @@ export interface OutputReportSendInfo {
*/
export type ReportSendInfoResponse = CommonActionResult<OutputReportSendInfo>;
/**
* 保存体检客户报告邮寄地址入参
*/
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<OutputExpressContact>;