添加保存体检客户报告邮寄地址
This commit is contained in:
@@ -52,6 +52,8 @@ import type {
|
|||||||
ReportSendQRcodeResponse,
|
ReportSendQRcodeResponse,
|
||||||
InputReportSendInfo,
|
InputReportSendInfo,
|
||||||
ReportSendInfoResponse,
|
ReportSendInfoResponse,
|
||||||
|
InputExpressContact,
|
||||||
|
ReportSendAddressSaveResponse,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -416,3 +418,15 @@ export const getReportSendInfo = (
|
|||||||
).then(res => res.data);
|
).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);
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -882,3 +882,36 @@ export interface OutputReportSendInfo {
|
|||||||
*/
|
*/
|
||||||
export type ReportSendInfoResponse = CommonActionResult<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>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user