import { requestClient } from '#/api/request';

const prefix = 'delivery-warehouse-bank-card-report/';

/**
 * 获取银行卡报备详情
 */
export async function getDeliveryWarehouseBankCardDetail(params?: {
  warehouse_id?: number;
}) {
  return requestClient.get<any>(`${prefix}detail`, { params });
}

/**
 * 提交银行卡报备
 */
export async function reportDeliveryWarehouseBankCard(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}report`, data);
}

/**
 * 同步报备状态
 */
export async function syncDeliveryWarehouseBankCardStatus(data?: Record<string, any>) {
  return requestClient.post<any>(`${prefix}sync-status`, data || {});
}
