22 lines
518 B
TypeScript
22 lines
518 B
TypeScript
import { createCrudHandler } from '~/handlers/_handler'
|
|
import { postMedicineMethod, patchMedicineMethod, removeMedicineMethod } from '~/services/medicine-method.service'
|
|
|
|
export const {
|
|
recId,
|
|
recAction,
|
|
recItem,
|
|
isReadonly,
|
|
isProcessing,
|
|
isFormEntryDialogOpen,
|
|
isRecordConfirmationOpen,
|
|
onResetState,
|
|
handleActionSave,
|
|
handleActionEdit,
|
|
handleActionRemove,
|
|
handleCancelForm,
|
|
} = createCrudHandler({
|
|
post: postMedicineMethod,
|
|
patch: patchMedicineMethod,
|
|
remove: removeMedicineMethod,
|
|
})
|