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

export interface WorkflowTableConfigRow {
  formId: string;
  formName: string;
  tableType: string;
  tableName: string;
  tableDisplayName: string;
}

export function getWorkflowTableConfig(flowId?: string) {
  return defHttp.get<{ data: WorkflowTableConfigRow[] }>({
    url: '/api/lims/custom/workflow-table-config',
    data: flowId ? { flowId } : undefined,
  });
}
