/**
 * 仓库药品修改记录 API
 */
import { requestClient } from '#/api/request';

const prefix = 'warehouse-drug-change-log/';

export async function getWarehouseDrugChangeLogList(data: any) {
  return requestClient.get<any>(`${prefix}list`, { params: data });
}

export async function getWarehouseDrugChangeLogDetail(id: number) {
  return requestClient.get<any>(`${prefix}detail`, { params: { id } });
}

export async function getWarehouseDrugChangeTypeOption() {
  return requestClient.get<{ value: number; label: string }[]>(
    `${prefix}change-type-option`,
  );
}

export async function getWarehouseDrugUserTypeOption() {
  return requestClient.get<{ value: number; label: string }[]>(
    `${prefix}user-type-option`,
  );
}
