wip: separate some controller interface to be fine grain later

This commit is contained in:
Supan Adit Pratama 2024-11-02 01:07:19 +07:00
parent e95a6a80d7
commit 50d02ea9ff

View File

@ -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 {}