import { requestClient } from '#/api/request';
const prefix = 'express-companies/';
/**
 * 分页查询用户列表
 * @param data
 */
export async function getExpressCompaniesList(data: any) {
  return requestClient.get<any>(`${prefix}list`, { params: data });
}

/**
 * 分页查询用户列表
 * @param data
 */
export async function getExpressCompaniesOption(data: any) {
  return requestClient.get<any>(`${prefix}option`, { params: data });
}

/**
 * 获取快递公司详情
 * @param id
 */
export async function getExpressCompaniesInfo(id: number) {
  return requestClient.get<any>(`${prefix}detail`, { params: { id } });
}

/**
 * 新增快递公司
 * @param data
 */
export async function createExpressCompanies(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}create`, data);
}

/**
 * 编辑快递公司
 * @param data
 */
export async function updateExpressCompanies(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}update`, data);
}

/**
 * 删除快递公司
 * @param data
 */
export async function deleteExpressCompanies(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}delete`, data);
}
