diff --git a/libs/skeleton/src/interfaces/controller/skeleton-crud.controller.interface.ts b/libs/skeleton/src/interfaces/controller/skeleton-crud.controller.interface.ts index 0e448a8..fa4fb85 100644 --- a/libs/skeleton/src/interfaces/controller/skeleton-crud.controller.interface.ts +++ b/libs/skeleton/src/interfaces/controller/skeleton-crud.controller.interface.ts @@ -1,10 +1,23 @@ import { IPaginationParam } from '../pagination-param.interface'; -export interface ISkeletonCRUDController { - create(body); - delete(id); +export interface ISkeletonReadController { list(); - pagination(params: IPaginationParam); read(id); + pagination(params: IPaginationParam); +} + +export interface ISkeletonDeleteController { + delete(id); +} +export interface ISkeletonCreateController { + create(body); +} +export interface ISkeletonUpdateController { update(id, body); } + +export interface ISkeletonCRUDController + extends ISkeletonCreateController, + ISkeletonReadController, + ISkeletonDeleteController, + ISkeletonUpdateController {}