feat(unit): add unit and installation service models

This commit is contained in:
riefive
2025-09-29 13:20:45 +07:00
parent 436af7e565
commit 050f8964ef
7 changed files with 236 additions and 10 deletions
+21
View File
@@ -0,0 +1,21 @@
import { createCrudHandler } from '~/handlers/_handler'
import { postInstallation, patchInstallation, removeInstallation } from '~/services/installation.service'
export const {
recId,
recAction,
recItem,
isReadonly,
isProcessing,
isFormEntryDialogOpen,
isRecordConfirmationOpen,
onResetState,
handleActionSave,
handleActionEdit,
handleActionRemove,
handleCancelForm,
} = createCrudHandler({
post: postInstallation,
patch: patchInstallation,
remove: removeInstallation,
})