wip: id might be number or uuid alias string

This commit is contained in:
Supan Adit Pratama 2024-10-26 17:51:27 +07:00
parent df32210dfe
commit c371b60746
4 changed files with 25 additions and 10 deletions

View File

@ -0,0 +1,12 @@
export interface ISkeletonCRUDController {
create();
readSelected(id);
readPagination();
readEntire();
updatePartial();
updatePartialBatch();
updateEntire();
updateEntirePatch();
deleteSelected();
deleteBatch();
}

View File

@ -0,0 +1,10 @@
export interface StandardProcess {
initialization(): void;
before(): void;
begin(): void;
process(): void;
end(): void;
after(): void;
result();
}

View File

@ -1,8 +0,0 @@
export interface StandardProcess {
Initialization(): void;
Before(): void;
Begin(): void;
Process(): void;
End(): void;
After(): void;
}

View File

@ -1,11 +1,12 @@
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()
create() {}
@Get(':id')
readSelected(@Param('id') id: string) {}
readSelected(@Param('id') id) {}
@Get()
readPagination() {}