export interface Medicine {
  id: string
  name: string
  code: string
  medicineGroup_code: string
  medicineMethod_code: string
  uom_code: string
  type: string
  dose: string
  infra_id: string
  stock: string
  status: string
}

export interface CreateDto {
  name: string
  code: string
  medicineGroup_code: string
  medicineMethod_code: string
  uom_code: string
  type: string
  dose: string
  infra_id: string
  stock: string
  status: string
}

export interface GetListDto {
  page: number
  size: number
  name?: string
  code?: string
  medicineGroup_code?: string
  medicineMethod_code?: string
  uom_code?: string
  type?: string
  dose?: string
  infra_id?: string
  stock?: string
  status?: string
}

export interface GetDetailDto {
  id?: string
}

export interface UpdateDto extends CreateDto {
  id?: number
}

export interface DeleteDto {
  id?: string
}

export function genMedicine(): CreateDto {
  return {
    name: 'name',
    code: 'code',
    medicineGroup_code: 'medicineGroup_code',
    medicineMethod_code: 'medicineMethod_code',
    uom_code: 'uom_code',
    type: 'type',
    dose: 'dose',
    infra_id: 'infra_id',
    stock: 'stock',
    status: 'status',
  }
}
