import { type Base, genBase } from "./_base"

export interface McuOrderItem extends Base {
  mcuOrder_id: number
  mcuSrc_code: string
  note?: string
  examinationDate?: string
  result?: string
  status_code?: string
}

export interface CreateDto {
  mcuOrder_id: number
  mcuSrc_code: string
  note?: string
}

export interface ReadList {
  'mcu-order-id'?: number
  'mcu-src-code'?: string
  includes?: string
}

export interface UpdateDto extends CreateDto {
  id: number
}

export function genMcuOrderItem(): McuOrderItem {
  return {
    ...genBase(),
    mcuOrder_id: 0,
    mcuSrc_code: '',
  }
}
