import { request } from '@/api/request'

/** 批次列表 */
export const fetchLoanBatch = (data: { page: number; size: number }) => request.post('/factor/v1/fetch/loan_batch', data)

/** 上报列表 */
export const fetchTransferWatch = (data: { page: number; size: number }) => request.post('/factor/v1/fetch/transfer_watch', data)

/** 回盘列表 */
export const fetchTransferDown = (data: { page: number; size: number }) => request.post('/factor/v1/fetch/transfer_down', data)

/** 放款数据列表 */
export const fetchDataFile = (data: { page: number; size: number }) => request.post('/factor/v1/fetch/data_file', data)

/** 回盘数据列表 */
export const fetchDataReply = (data: { page: number; size: number }) => request.post('/factor/v1/fetch/data_reply', data)

/** 贷款支付数据列表 */
export const fetchLoanPayment = (data: { page: number; size: number; status?: number }) =>
  request.post('/factor/v1/fetch/loan_payment', data)

/** 获取日报数据 */
export const fetchOverviewReports = (data: { page: number; size: number }) => request.post('/factor/v1/reports/overview', data)

/** 获取日报数据 */
export const fetchDailyReports = (data: { page: number; size: number }) => request.post('/factor/v1/reports/days', data)

/** 获取周报数据 */
export const fetchWeeklyReports = (data: { page: number; size: number }) => request.post('/factor/v1/reports/weeks', data)

/** 获取月报数据 */
export const fetchMonthlyReports = (data: { page: number; size: number }) => request.post('/factor/v1/reports/months', data)

/** 获取批次详情 */
export const getLoanBatchDetail = (data: { batch_id: number }) => request.post(`/factor/v1/get/batch`, data)
