This commit is contained in:
SepehrYahyaee
2026-05-23 14:05:11 +03:30
parent 39c4855b95
commit 94bde88cb6
11 changed files with 338 additions and 126 deletions

View File

@@ -36,7 +36,6 @@ import { BlameDocumentType } from "./entities/schema/blame-document.schema";
import {
CarBodyFormDto,
CarBodySecondForm,
CreateRequestDto,
DescriptionDto,
InitialFormDto,
LocationDto,
@@ -53,18 +52,18 @@ export class RequestManagementController {
private readonly requestManagementService: RequestManagementService,
) {}
@ApiOperation({ deprecated: true })
@Post()
@UseGuards(GlobalGuard)
async createRequest(
@CurrentUser() user,
@Body() createRequestDto: CreateRequestDto,
) {
return await this.requestManagementService.createRequest(
user,
createRequestDto.type,
);
}
// @ApiOperation({ deprecated: true })
// @Post()
// @UseGuards(GlobalGuard)
// async createRequest(
// @CurrentUser() user,
// @Body() createRequestDto: CreateRequestDto,
// ) {
// return await this.requestManagementService.createRequest(
// user,
// createRequestDto.type,
// );
// }
@ApiOperation({ deprecated: true })
@Post("/initial-form/:requestId")