style: apply standard ESLint & Prettier formatting across backend
Deploy Canina / deploy (push) Successful in 4m58s
Deploy Canina / deploy (push) Successful in 4m58s
This commit is contained in:
1 parent
ae636c8b03
commit
62bd8811fa
66 files changed
+1398
-607
No files matched your search
@@ -1,6 +1,19 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, UseGuards } from '@nestjs/common';
|
||||
import {
|
||||
Controller,
|
||||
Get,
|
||||
Post,
|
||||
Put,
|
||||
Delete,
|
||||
Body,
|
||||
Param,
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
import { CmsService } from './cms.service';
|
||||
import { CreateHeroBannerDto, CreateVetTestimonialDto, CreateSmartAdvisorRuleDto } from './dto/cms.dto';
|
||||
import {
|
||||
CreateHeroBannerDto,
|
||||
CreateVetTestimonialDto,
|
||||
CreateSmartAdvisorRuleDto,
|
||||
} from './dto/cms.dto';
|
||||
import { ApiTags, ApiOperation, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
|
||||
import { RolesGuard } from '../auth/roles.guard';
|
||||
@@ -29,7 +42,10 @@ export class CmsController {
|
||||
|
||||
@Put('hero-banners/:id')
|
||||
@ApiOperation({ summary: 'ویرایش بنر هیرو' })
|
||||
updateHeroBanner(@Param('id') id: string, @Body() dto: Partial<CreateHeroBannerDto>) {
|
||||
updateHeroBanner(
|
||||
@Param('id') id: string,
|
||||
@Body() dto: Partial<CreateHeroBannerDto>,
|
||||
) {
|
||||
return this.cmsService.updateHeroBanner(id, dto);
|
||||
}
|
||||
|
||||
@@ -54,7 +70,10 @@ export class CmsController {
|
||||
|
||||
@Put('vet-testimonials/:id')
|
||||
@ApiOperation({ summary: 'ویرایش نظر دامپزشک' })
|
||||
updateVetTestimonial(@Param('id') id: string, @Body() dto: Partial<CreateVetTestimonialDto>) {
|
||||
updateVetTestimonial(
|
||||
@Param('id') id: string,
|
||||
@Body() dto: Partial<CreateVetTestimonialDto>,
|
||||
) {
|
||||
return this.cmsService.updateVetTestimonial(id, dto);
|
||||
}
|
||||
|
||||
@@ -79,7 +98,10 @@ export class CmsController {
|
||||
|
||||
@Put('smart-advisor-rules/:id')
|
||||
@ApiOperation({ summary: 'ویرایش قانون مشاوره هوشمند' })
|
||||
updateSmartAdvisorRule(@Param('id') id: string, @Body() dto: Partial<CreateSmartAdvisorRuleDto>) {
|
||||
updateSmartAdvisorRule(
|
||||
@Param('id') id: string,
|
||||
@Body() dto: Partial<CreateSmartAdvisorRuleDto>,
|
||||
) {
|
||||
return this.cmsService.updateSmartAdvisorRule(id, dto);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user