mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2025-05-04 12:29:54 +00:00
34 lines
480 B
TypeScript
34 lines
480 B
TypeScript
import { Delete, Get, Param, Patch, Post, Put } from '@nestjs/common';
|
|
|
|
export class AutoCRUDController {
|
|
@Post()
|
|
create() {}
|
|
|
|
@Get(':id')
|
|
readSelected(@Param('id') id: string) {}
|
|
|
|
@Get()
|
|
readPagination() {}
|
|
|
|
@Get('list')
|
|
readEntire() {}
|
|
|
|
@Patch()
|
|
updatePartial() {}
|
|
|
|
@Patch('batch')
|
|
updatePartialBatch() {}
|
|
|
|
@Put()
|
|
updateEntire() {}
|
|
|
|
@Put('batch')
|
|
updateEntirePatch() {}
|
|
|
|
@Delete()
|
|
deleteSelected() {}
|
|
|
|
@Delete('batch')
|
|
deleteBatch() {}
|
|
}
|