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

const prefix = 'audit-prescription/';
/**
 * 分页查询用户列表
 * @param data
 */
export async function getPrescriptionListApi(data: any) {
  return requestClient.get<any>(`${prefix}list`, { params: data });
}
/**
 * 处方溯源
 * @param data
 */
export async function getPrescriptionSourceApi(data: any) {
  return requestClient.get<any>(`${prefix}source`, { params: data });
}
/**
 * 通过审核
 * @param data
 */
export async function passApi(data: any) {
  return requestClient.get<any>(`${prefix}pass`, { params: data });
}
/**
 * 通过审核
 * @param data
 */
export async function rejectApi(data: any) {
  return requestClient.post<any>(`${prefix}reject`, data);
}
