mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2024-11-21 19:06:21 +00:00
wip: separate some controller interface to be fine grain later
This commit is contained in:
parent
e95a6a80d7
commit
50d02ea9ff
@ -1,10 +1,23 @@
|
|||||||
import { IPaginationParam } from '../pagination-param.interface';
|
import { IPaginationParam } from '../pagination-param.interface';
|
||||||
|
|
||||||
export interface ISkeletonCRUDController {
|
export interface ISkeletonReadController {
|
||||||
create(body);
|
|
||||||
delete(id);
|
|
||||||
list();
|
list();
|
||||||
pagination(params: IPaginationParam);
|
|
||||||
read(id);
|
read(id);
|
||||||
|
pagination(params: IPaginationParam);
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ISkeletonDeleteController {
|
||||||
|
delete(id);
|
||||||
|
}
|
||||||
|
export interface ISkeletonCreateController {
|
||||||
|
create(body);
|
||||||
|
}
|
||||||
|
export interface ISkeletonUpdateController {
|
||||||
update(id, body);
|
update(id, body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ISkeletonCRUDController
|
||||||
|
extends ISkeletonCreateController,
|
||||||
|
ISkeletonReadController,
|
||||||
|
ISkeletonDeleteController,
|
||||||
|
ISkeletonUpdateController {}
|
||||||
|
Loading…
Reference in New Issue
Block a user