business list
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Controller, Get, Post, Body, Param, Delete, Query } from '@nestjs/common';
|
import { Controller, Get, Post, Body, Query } from '@nestjs/common';
|
||||||
import { DPageService } from './dpage.service';
|
import { DPageService } from './dpage.service';
|
||||||
import { LoginDto } from './dto/login.dto';
|
import { LoginDto } from './dto/login.dto';
|
||||||
import { UserDec } from '../../common/decorators/user.decorator';
|
import { UserDec } from '../../common/decorators/user.decorator';
|
||||||
@@ -20,22 +20,22 @@ export class DpageController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Get('business/list')
|
@Get('business/list')
|
||||||
findAll(@Query() dto :FindBusinessesDto) {
|
findAll(@Query() dto: FindBusinessesDto) {
|
||||||
return this.dpageService.findAll(dto);
|
return this.dpageService.findAll(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get(':id')
|
// @Get(':id')
|
||||||
findOne(@Param('id') id: string) {
|
// findOne(@Param('id') id: string) {
|
||||||
return this.dpageService.findOne(+id);
|
// return this.dpageService.findOne(+id);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// @Patch(':id')
|
// @Patch(':id')
|
||||||
// update(@Param('id') id: string, @Body() updateDpageDto: UpdateDpageDto) {
|
// update(@Param('id') id: string, @Body() updateDpageDto: UpdateDpageDto) {
|
||||||
// return this.dpageService.update(id, updateDpageDto);
|
// return this.dpageService.update(id, updateDpageDto);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
@Delete(':id')
|
// @Delete(':id')
|
||||||
remove(@Param('id') id: string) {
|
// remove(@Param('id') id: string) {
|
||||||
return this.dpageService.remove(+id);
|
// return this.dpageService.remove(+id);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user