checkReport.ts 1.01 KB
/**
 * 车辆检测保管 —— 源 src/api/usedCarManagement.js 的同名接口,路径 / method 逐字保留。
 *
 * 请求统一经 ../core/client 的 @uj/api-core 装配后由主壳 props.request 代发;
 * 源系统没有 DTO 定义,这里不臆造结构:参数是一层平铺对象,返回类型由调用方泛型指定。
 */
import { usedcarClient } from '../core/client';
import type { UsedcarParams } from '../core/types';

/**
 * 车辆检测保管管理
 */
export function getcheckReportList<T = unknown>(data: UsedcarParams = {}) {
  return usedcarClient.post<T>('/checkReport/pageList', data, { timeout: 30000 });
}

/**
 * 车辆检测保管管理详情
 */
export function getcheckReportDetail<T = unknown>(data: UsedcarParams = {}) {
  return usedcarClient.post<T>('/checkReport/detail', data, { timeout: 30000 });
}

/** 模块单例出口,与 dashboardApi 同一调用面;实现与上方具名函数完全同源。 */
export const checkReportApi = {
  getcheckReportList,
  getcheckReportDetail,
};