/** * 通用接口返回状态码类型 */ export type CommonActionResultStatusCode = 200 | 400 | 401 | 403 | 500 | 4011 | -1; /** * 状态码常量(用于运行时访问) */ export const StatusCode = { Success: 200, BadRequest: 400, Unauthorized: 401, Forbidden: 403, InternalException: 500, Unidentified: 4011, Fail: -1, } as const; /** * 通用接口返回数据实体 */ export interface CommonActionResult { Status: CommonActionResultStatusCode; Message?: string | null; Data?: T; TraceId?: string | null; CopyRight?: string | null; } /** * 今日体检统计信息入参 */ export interface InputTodayExamStatisticsInfo { // 空对象,无需参数 } /** * 今日体检统计信息出参 */ export interface OutputTodayExamStatisticsInfo { /** 今日预约人数 */ today_appointment_count?: number | null; /** 今日签到人数 */ today_signin_count?: number | null; /** 今日签在检人数 */ today_in_exam_count?: number | null; /** 今日签打印导检单 */ today_print_guide_count?: number | null; /** 今日签已完成人数 */ today_completed_count?: number | null; } /** * 今日体检统计信息接口返回 */ export type TodayExamStatisticsResponse = CommonActionResult; /** * 今日体检进度入参 */ export interface InputTodayExamProgress { // 空对象,无需参数 } /** * 今日体检进度出参 */ export interface OutputTodayExamProgress { /** 今日预约人数 */ today_appointment_count?: number | null; /** 今日已签到人数 */ today_signin_count?: number | null; /** 今日体检中人数 */ today_in_exam_count?: number | null; /** 今日用餐人数 */ today_meal_count?: number | null; } /** * 今日体检进度接口返回 */ export type TodayExamProgressResponse = CommonActionResult; /** * 营收数据统计入参 */ export interface InputRevenueStatisticsInfo { // 空对象,无需参数 } /** * 营收数据统计出参 */ export interface OutputRevenueStatisticsInfo { /** 体检收入 */ physical_exam_income?: number | null; /** 加项收入 */ add_item_income?: number | null; /** 整体收入 */ total_income?: number | null; /** 目标收入 */ target_income?: number | null; /** 完成百分比 */ completion_percentage?: string | null; /** 缺口金额 */ gap_amount?: number | null; } /** * 营收数据统计接口返回 */ export type RevenueStatisticsResponse = CommonActionResult; /** * 体检客户列表入参 */ export interface InputPhysicalExamCustomerList { /** 查询文本(客户姓名、证件号码、联系电话、卡号) */ query_text?: string | null; /** 是否全部 (1-是 0-否) */ is_all: number; /** 是否上午 (1-是 0-否) */ is_morning: number; /** 是否下午 (1-是 0-否) */ is_afternoon: number; /** 是否高客 (1-是 0-否) */ is_high_customer: number; /** 是否普客 (1-是 0-否) */ is_general_customer: number; /** 是否已登记 (1-是 0-否) */ is_registered: number; /** 是否未登记 (1-是 0-否) */ is_not_registered: number; /** 是否散客 (1-是 0-否) */ is_individual_customer: number; /** 是否团客 (1-是 0-否) */ is_group_customer: number; } /** * 体检客户列表项 */ export interface OutputPhysicalExamCustomerListItem { physical_exam_status?: number | null; physical_exam_status_name?: string | null; physical_exam_id?: number | null; customer_name?: string | null; phone?: string | null; id_no?: string | null; family_doctor_name?: string | null; member_level?: string | null; is_vip?: number | null; package_code?: string | null; package_name?: string | null; add_item_flag?: number | null; add_item_count?: number | null; channel?: string | null; physical_exam_time?: string | null; physical_exam_complete_time?: string | null; customer_type?: number | null; is_register?: number | null; is_sign_in?: number | null; is_print?: number | null; appointment_remarks?: string | null; time_spent?: string | null; } /** * 体检客户列表接口返回 */ export type PhysicalExamCustomerListResponse = CommonActionResult; /** * 体检进度详情入参 */ export interface InputPhysicalExamProgressDetail { /** 体检ID */ physical_exam_id: number; } /** * 体检进度信息 */ export interface PhysicalExamProgressItem { department_id?: number | null; department_name?: string | null; project_id?: string | null; project_name?: string | null; /** 检查状态(1-已查 2-弃检 3-未查 4-延期) */ exam_status?: number | null; exam_status_name?: string | null; } /** * 客户基本信息(进度、详情共用) */ export interface CustomerInfo { customer_name?: string | null; physical_exam_number?: string | null; is_vip?: number | null; phone?: string | null; id_no?: string | null; gender_code?: number | null; gender_name?: string | null; patient_marital_status?: number | null; patient_marital_status_name?: string | null; family_doctor_name?: string | null; customer_type?: number | null; age?: string | null; card_number?: string | null; } /** * 体检进度详情出参 */ export interface OutputPhysicalExamProgressDetail { customerInfo?: CustomerInfo | null; examProgressesList?: PhysicalExamProgressItem[] | null; } /** * 体检进度详情接口返回 */ export type PhysicalExamProgressDetailResponse = CommonActionResult; /** * 客户详情入参 */ export interface InputCustomerDetail { /** 体检ID */ physical_exam_id: number; } /** * 客户预约信息 */ export interface CustomerAppointmentInfo { appointment_time?: string | null; sign_in_time?: string | null; physical_exam_complete_time?: string | null; package_name?: string | null; } /** * 客户体检加项 */ export interface CustomerExamAddItem { dept_name?: string | null; combination_name?: string | null; } /** * 客户详情出参 */ export interface OutputCustomerDetail { customerInfo?: CustomerInfo | null; appointmentInfo?: CustomerAppointmentInfo | null; addItemInfoList?: CustomerExamAddItem[] | null; } /** * 客户详情接口返回 */ export type CustomerDetailResponse = CommonActionResult; /** * 体检中心签到入参 */ export interface InputMedicalExamCenterSignIn { /** 身份证件照片(格式:jpg) */ id_no_pic: File | Blob; } /** * 体检中心签到出参 */ export interface OutputPhysicalExamSignIn { /** 是否签到成功(0-成功 1-失败) */ is_success?: number | null; } /** * 体检中心签到响应 */ export type PhysicalExamSignInResponse = CommonActionResult; /** * 获取体检知情同意书入参 */ export interface InputTongyishuInfo { /** 体检ID */ exam_id: number; } /** * 知情同意书文件信息 */ export interface OutputTongyishuFileInfo { /** 组合代码 */ combination_code?: number | null; /** 知情同意书文件名称 */ pdf_name: string; /** 知情同意书PDF文件地址 */ pdf_url: string; } /** * 获取体检知情同意书出参 */ export interface OutputTongyishuInfo { /** 知情同意书PDF文件url */ list_pdf_url?: OutputTongyishuFileInfo[] | null; /** 消息内容 */ message?: string | null; } /** * 获取体检知情同意书响应 */ export type TongyishuGetResponse = CommonActionResult; /** * 提交体检知情同意书签名入参 */ export interface InputTongyishuSignSubmit { /** 体检ID */ exam_id: number; /** PDF文件组合代码 */ combination_code: number; /** 签名图片文件 */ sign_file: File | Blob; } /** * 提交体检知情同意书签名出参 */ export interface OutputTongyishuSignInfo { /** 知情同意书PDF文件列表 */ list_pdf_url?: OutputTongyishuFileInfo[] | null; /** 消息内容 */ message?: string | null; } /** * 提交体检知情同意书签名响应 */ export type TongyishuSignSubmitResponse = CommonActionResult; /** * 提交体检签名生成导检单PDF入参 */ export interface InputDaojiandanSignSubmit { /** 体检ID */ exam_id: number; /** 签名图片文件 */ sign_file: File | Blob; } /** * 提交体检签名生成导检单PDF出参 */ export interface OutputDaojiandanSignInfo { /** 导检单文件名称 */ pdf_name?: string | null; /** PDF文件地址 */ pdf_url?: string | null; /** 消息内容 */ message?: string | null; } /** * 提交体检签名生成导检单PDF响应 */ export type DaojiandanSignSubmitResponse = CommonActionResult; /** * 客户信息编辑入参 */ export interface InputCustomerDetailEdit { /** 婚姻状况(10-未婚 20-已婚) */ marital_status: number; /** 联系电话 */ phone: string; } /** * 客户信息编辑出参 */ export interface OutputCustomerDetailEdit { // 空对象,无属性 } /** * 客户信息编辑响应 */ export type CustomerDetailEditResponse = CommonActionResult; /** * 体检加项列表信息入参 */ export interface InputPhysicalExamAddItem { /** 项目名称(必填,空字符串表示获取全部) */ item_name: string; } /** * 体检加项列表信息出参 */ export interface OutputPhysicalExamAddItem { /** 项目ID */ item_id?: number | null; /** 项目名称 */ item_name?: string | null; /** 实收金额 */ actual_received_amount?: number | null; /** 原价 */ original_price?: number | null; /** 折扣率(含折扣单位,如8.0折) */ discount_rate?: string | null; /** 次数 */ times?: number | null; } /** * 体检加项列表信息响应 */ export type PhysicalExamAddItemListResponse = CommonActionResult; /** * 体检加项支付记录入参(生成扫码支付二维码) */ export interface InputPhysicalExamAddOrder { /** 体检ID */ physical_exam_id: number; /** 用户姓名 */ userName: string; /** 用户手机号 */ userPhone: string; /** 体检加项产品ID列表(逗号分隔) */ addItemIds: string; /** 微信Native产品ID */ nativeProductId: string; /** 订单金额(元) */ orderAmount: number; /** 订单来源(mini_program-小程序,app-app应用等) */ source: string; /** 商户ID(可选,不传则使用默认商户) */ merchantId?: string | null; } /** * 生成扫码支付二维码响应 */ export type PhysicalExamQrcodeCreateResponse = CommonActionResult; /** * 体检支付结果查询入参(Native 查询支付是否成功) */ export interface InputOrderPaymentInfo { /** 体检ID */ physical_exam_id: number; /** 订单编号 */ order_id: string; } /** * 体检支付结果查询响应 */ export type PhysicalExamIsPaymentResponse = CommonActionResult; /** * 体检用餐登记列表入参 */ export interface InputPhysicalExamDiningLog { /** 用餐类型(1-全部 2-已用餐 3-未用餐) */ dining_type: number; } /** * 体检用餐登记列表项 */ export interface PoPhysicalExamDiningLog { /** 客户姓名 */ customer_name?: string | null; /** 体检ID */ physical_exam_id?: number | null; /** 体检编号 */ exam_no?: string | null; /** 体检状态 */ physical_exam_status?: number | null; /** 体检状态名称 */ physical_exam_status_name?: string | null; /** 是否用餐(1-已用餐 0-未用餐) */ is_dining?: number | null; } /** * 体检用餐登记列表出参 */ export interface OutputPhysicalExamDiningLog { /** 今日体检人数 */ today_exam_count?: number | null; /** 已用餐人数 */ dined_count?: number | null; /** 未用餐人数 */ not_dined_count?: number | null; /** 用餐登记列表 */ DiningList?: PoPhysicalExamDiningLog[] | null; } /** * 体检用餐登记列表响应 */ export type PhysicalExamDiningLogResponse = CommonActionResult; /** * 体检用餐登记入参 */ export interface InputTijianDiningLog { /** 体检ID */ physical_exam_id: number; /** 体检编号 */ exam_no: string; /** 客户姓名 */ customer_name: string; } /** * 体检用餐登记出参 */ export interface OutputTijianDiningLog { // 空对象,无属性 } /** * 体检用餐登记响应 */ export type TijianDiningLogResponse = CommonActionResult; /** * 获取操作员备注信息入参 */ export interface InputOperatorRemarkInfo { /** 操作员ID */ operator_id: string; } /** * 获取操作员备注信息出参 */ export interface OutputOperatorRemarkInfo { /** 备注内容 */ remark_content?: string | null; } /** * 获取操作员备注信息响应 */ export type OperatorRemarkInfoResponse = CommonActionResult; /** * 保存操作员备注信息入参 */ export interface InputOperatorRemarkInfoAdd { /** 操作员ID */ operator_id: string; /** 操作员姓名 */ operator_name: string; /** 备注内容 */ remark_content: string; } /** * 保存操作员备注信息出参 */ export interface OutputOperatorRemarkInfoAdd { // 空对象,无属性 } /** * 保存操作员备注信息响应 */ export type OperatorRemarkInfoAddResponse = CommonActionResult; /** * 获取登录验证码(图片)入参 */ export interface InputVerificationCodeImage { /** 应用ID */ app_id: string; } /** * 获取登录验证码(图片)出参 */ export interface OutputVerificationCodeImage { /** 验证码标识键 */ verification_code_key: string; /** 验证码图片(Base64 或图片地址) */ verification_code_image: string; } /** * 获取登录验证码(图片)响应 */ export type VerificationCodeImageResponse = CommonActionResult; /** * 登录(账号密码登录-图片验证码)入参 */ export interface InputLoginByPassword { /** 登录账号 */ username: string; /** 登录密码 */ password: string; /** 图片验证码内容 */ verification_code: string; /** 图片验证码 key */ verification_code_key: string; } /** * 登录(账号密码登录-图片验证码)出参 */ export interface OutputLoginByPassword { /** 用户ID */ user_id: string; /** 用户姓名 */ user_name: string; /** 角色集合(逗号分隔) */ roles: string; /** 访问令牌 */ access_token: string; /** 刷新令牌 */ refresh_token: string; } /** * 登录(账号密码登录-图片验证码)响应 */ export type LoginByPasswordResponse = CommonActionResult; /** * 获取登录验证码(手机号)入参 */ export interface InputVerificationCodePhone { /** 应用ID */ app_id: string; /** 手机号 */ phone: string; } /** * 获取登录验证码(手机号)出参 */ export interface OutputVerificationCodePhone { /** 验证码标识键 */ verification_code_key: string; } /** * 获取登录验证码(手机号)响应 */ export type VerificationCodePhoneResponse = CommonActionResult; /** * 菜单元数据 */ export interface MenuMeta { /** 激活图标 */ activeIcon?: string | null; /** 激活路径 */ activePath?: string | null; /** 是否固定标签页 */ affixTab: boolean; /** 固定标签页顺序 */ affixTabOrder: number; /** 图标 */ icon?: string | null; /** 排序 */ order: number; /** 标题 */ title: string; /** 是否保持活跃 */ keepAlive: boolean; /** 是否在菜单中隐藏子项 */ hideChildrenInMenu: boolean; /** 是否在菜单中隐藏 */ hideInMenu: boolean; /** 是否在面包屑中隐藏 */ hideInBreadcrumb: boolean; /** 是否在标签页中隐藏 */ hideInTab: boolean; /** 徽章 */ badge?: string | null; /** 徽章类型 */ badgeType?: string | null; /** 徽章变体 */ badgeVariants?: string | null; /** iframe 源 */ iframeSrc?: string | null; /** 链接 */ link?: string | null; /** 最大打开标签页数 */ maxNumOfOpenTab: number; /** 是否不使用基础布局 */ noBasicLayout: boolean; /** 是否在新窗口打开 */ openInNewWindow: boolean; /** 查询参数 */ query?: string | null; } /** * 菜单项 */ export interface MenuItem { /** 菜单ID */ id: string; /** 父菜单ID */ pid?: string | null; /** 权限代码 */ authCode?: string | null; /** 元数据 */ meta: MenuMeta; /** 状态 */ status: number; /** 类型 */ type: string; /** 名称 */ name: string; /** 路径 */ path: string; /** 重定向路径 */ redirect?: string | null; /** 组件 */ component?: string | null; /** 子菜单 */ children?: MenuItem[] | string[]; } /** * 获取用户菜单权限入参 */ export interface InputUserOwnedMenus { /** 应用ID */ app_id: string; } /** * 获取用户菜单权限出参 */ export interface OutputUserOwnedMenus { /** 菜单列表 */ menus: MenuItem[]; } /** * 获取用户菜单权限响应 */ export type UserOwnedMenusResponse = CommonActionResult; /** * B1服务点信息 */ export interface B1ServiceInfo { /** 科室名称 */ dept_name?: string | null; /** 医生名称 */ doctor_name?: string | null; /** 已检部位数 */ exam_part_count?: number | null; /** 总时长(分钟) */ total_duration_minutes?: number | null; /** 平均时长(分钟) */ average_duration_minutes?: number | null; } /** * B1服务看板入参 */ export interface InputB1ServiceBoard { // 空对象,无需参数 } /** * B1服务看板出参 */ export interface OutputB1ServiceBoard { /** B1服务点信息列表 */ b1_service_info_list: B1ServiceInfo[]; } /** * B1服务看板响应 */ export type B1ServiceBoardResponse = CommonActionResult; /** * 北3服务点信息 */ export interface North3ServiceInfo { /** 家医名称 */ family_doctor_name?: string | null; /** 面诊率 */ face_to_face_rate: number; /** 分配客户数 */ assigned_customer_count: number; /** 面诊数 */ face_to_face_count: number; } /** * 北3服务看板入参 */ export interface InputNorth3ServiceBoard { // 空对象,无需参数 } /** * 北3服务看板出参 */ export interface OutputNorth3ServiceBoard { /** 今日家医数 */ today_family_doctor_count: number; /** 分配客户数 */ assigned_customer_count: number; /** 面诊数 */ face_to_face_count: number; /** 北3服务点信息列表 */ north3_service_list: North3ServiceInfo[]; } /** * 北3服务看板响应 */ export type North3ServiceBoardResponse = CommonActionResult; /** * 报告寄送登记二维码入参 */ export interface InputReportSendQRcode { /** 预约ID */ appointment_id: string; } /** * 报告寄送登记二维码出参 */ export interface OutputReportSendQRcode { /** 二维码地址(Base64) */ qrcode_url: string; } /** * 报告寄送登记二维码响应 */ export type ReportSendQRcodeResponse = CommonActionResult; /** * 查看报告寄送地址入参 */ export interface InputReportSendInfo { /** 预约ID */ appointment_id: number; } /** * 查看报告寄送地址出参 */ export interface OutputReportSendInfo { /** 收件人 */ address_contact?: string | null; /** 联系电话 */ address_mobile?: string | null; /** 寄送地址 */ address_content?: string | null; } /** * 查看报告寄送地址响应 */ 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;