export interface Item {
  id: string
  name: string
  code: string
  itemGroup_code: string
  uom_code: string
  infra_id: number
  stock: number
}

export interface CreateDto {
  name: string
  code: string
  itemGroup_code: string
  uom_code: string
  infra_id: number
  stock: number
}

export interface GetListDto {
  page: number
  size: number
  name?: string
  code?: string
}

export interface GetDetailDto {
  id?: string
}

export interface UpdateDto extends CreateDto {
  id?: number
}

export interface DeleteDto {
  id?: string
}

export function genMedicine(): CreateDto {
  return {
    name: 'test',
    code: 'test',
    itemGroup_code: 'test',
    uom_code: 'test',
    infra_id: 1,
    stock: 1,
  }
}
