mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2024-11-24 12:56:22 +00:00
wip: id might be number or uuid alias string
This commit is contained in:
parent
df32210dfe
commit
c371b60746
@ -0,0 +1,12 @@
|
|||||||
|
export interface ISkeletonCRUDController {
|
||||||
|
create();
|
||||||
|
readSelected(id);
|
||||||
|
readPagination();
|
||||||
|
readEntire();
|
||||||
|
updatePartial();
|
||||||
|
updatePartialBatch();
|
||||||
|
updateEntire();
|
||||||
|
updateEntirePatch();
|
||||||
|
deleteSelected();
|
||||||
|
deleteBatch();
|
||||||
|
}
|
10
libs/skeleton/src/interfaces/skeleton-process.interface.ts
Normal file
10
libs/skeleton/src/interfaces/skeleton-process.interface.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
export interface StandardProcess {
|
||||||
|
initialization(): void;
|
||||||
|
before(): void;
|
||||||
|
begin(): void;
|
||||||
|
process(): void;
|
||||||
|
end(): void;
|
||||||
|
after(): void;
|
||||||
|
|
||||||
|
result();
|
||||||
|
}
|
@ -1,8 +0,0 @@
|
|||||||
export interface StandardProcess {
|
|
||||||
Initialization(): void;
|
|
||||||
Before(): void;
|
|
||||||
Begin(): void;
|
|
||||||
Process(): void;
|
|
||||||
End(): void;
|
|
||||||
After(): void;
|
|
||||||
}
|
|
@ -1,11 +1,12 @@
|
|||||||
import { Delete, Get, Param, Patch, Post, Put } from '@nestjs/common';
|
import { Delete, Get, Param, Patch, Post, Put } from '@nestjs/common';
|
||||||
|
import { ISkeletonCRUDController } from './interfaces/controller/skeleton-crud.controller.interface';
|
||||||
|
|
||||||
export class SkeletonCRUDController {
|
export class SkeletonCRUDController implements ISkeletonCRUDController {
|
||||||
@Post()
|
@Post()
|
||||||
create() {}
|
create() {}
|
||||||
|
|
||||||
@Get(':id')
|
@Get(':id')
|
||||||
readSelected(@Param('id') id: string) {}
|
readSelected(@Param('id') id) {}
|
||||||
|
|
||||||
@Get()
|
@Get()
|
||||||
readPagination() {}
|
readPagination() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user