添加接口
This commit is contained in:
@@ -70,6 +70,10 @@ import type {
|
||||
ReportSendInfoResponse,
|
||||
InputExpressContact,
|
||||
ReportSendAddressSaveResponse,
|
||||
InputExamOptionalItemList,
|
||||
OptionalItemInfoListResponse,
|
||||
InputOptionalPackageRemove,
|
||||
OptionalPackageRemoveResponse,
|
||||
} from './types';
|
||||
|
||||
/**
|
||||
@@ -550,3 +554,26 @@ export const getTijianPdfFile = (
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
/**
|
||||
* 通过身份证号获取体检选项项目列表
|
||||
*/
|
||||
export const getExamOptionalItemList = (
|
||||
data: InputExamOptionalItemList
|
||||
): Promise<OptionalItemInfoListResponse> => {
|
||||
return request.post<OptionalItemInfoListResponse>(
|
||||
`${MEDICAL_EXAM_BASE_PATH}/optional-item-list`,
|
||||
data
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
/**
|
||||
* 移除弃选体检套餐选项
|
||||
*/
|
||||
export const removeOptionalPackage = (
|
||||
data: InputOptionalPackageRemove
|
||||
): Promise<OptionalPackageRemoveResponse> => {
|
||||
return request.post<OptionalPackageRemoveResponse>(
|
||||
`${MEDICAL_EXAM_BASE_PATH}/optional-item-remove`,
|
||||
data
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
@@ -1254,3 +1254,78 @@ export interface OutputTijianPdfFileInfo {
|
||||
*/
|
||||
export type TijianPdfFileGetResponse = CommonActionResult<OutputTijianPdfFileInfo[]>;
|
||||
|
||||
/**
|
||||
* 通过身份证号获取体检选项项目列表入参
|
||||
*/
|
||||
export interface InputExamOptionalItemList {
|
||||
/** 体检ID */
|
||||
physical_exam_id: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 自助机体检套餐信息
|
||||
*/
|
||||
export interface PoPhysicalExamPackageInfo {
|
||||
/** 体检ID */
|
||||
physical_exam_id?: number | null;
|
||||
/** 是否可选套餐(1-是 0-否) */
|
||||
is_optional_package?: number | null;
|
||||
/** 是否可选套餐名称 */
|
||||
is_optional_package_name?: string | null;
|
||||
/** 套餐代码 */
|
||||
package_code?: number | null;
|
||||
/** 套餐名称 */
|
||||
package_name?: string | null;
|
||||
/** 登记时间 */
|
||||
registration_time?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 自助机体检可选项目列表出参
|
||||
*/
|
||||
export interface OutputPhysicalExamItemInfo {
|
||||
/** 组合名称 */
|
||||
combination_name?: string | null;
|
||||
/** 组合代码 */
|
||||
combination_code?: number | null;
|
||||
/** 套餐代码 */
|
||||
package_code?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 自助机体检项目列表出参
|
||||
*/
|
||||
export interface OutputOptionalItemInfoList {
|
||||
/** 套餐信息 */
|
||||
packageInfo?: PoPhysicalExamPackageInfo | null;
|
||||
/** 可选套餐项目列表 */
|
||||
listOptionalItem?: OutputPhysicalExamItemInfo[] | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过身份证号获取体检选项项目列表响应
|
||||
*/
|
||||
export type OptionalItemInfoListResponse = CommonActionResult<OutputOptionalItemInfoList>;
|
||||
|
||||
/**
|
||||
* 移除弃选体检套餐选项入参
|
||||
*/
|
||||
export interface InputOptionalPackageRemove {
|
||||
/** 体检ID */
|
||||
physical_exam_id: number;
|
||||
/** 组合代码(多个项目以逗号分割,例如:123,456) */
|
||||
combination_code_ids: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 移除弃选体检套餐选项出参
|
||||
*/
|
||||
export interface OutputOptionalPackageRemove {
|
||||
/** 是否成功(1-成功 0-失败) */
|
||||
is_success?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 移除弃选体检套餐选项响应
|
||||
*/
|
||||
export type OptionalPackageRemoveResponse = CommonActionResult<OutputOptionalPackageRemove>;
|
||||
|
||||
Reference in New Issue
Block a user