feat(cities): добавляет DTO для создания города и района

 feat(greetings): добавляет схему для тела запроса при добавлении фразы приветствия

 feat(auth): добавляет схему для тела запроса при обновлении FCM токена

 feat(tags): добавляет схему для тела запроса при создании тега
This commit is contained in:
Oscar
2026-06-08 14:29:40 +03:00
parent 102b6b4026
commit 8b852c9f28
5 changed files with 26 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import { Body, Controller, Post, UseGuards } from '@nestjs/common';
import { ApiBearerAuth, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { ApiBearerAuth, ApiBody, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { AuthService } from './auth.service';
import { LoginDto } from './dto/login.dto';
import { RefreshTokenDto } from './dto/refresh-token.dto';
@@ -52,6 +52,7 @@ export class AuthController {
@Post('fcm-token')
@ApiBearerAuth()
@ApiOperation({ summary: 'Update FCM push token' })
@ApiBody({ schema: { type: 'object', properties: { fcmToken: { type: 'string', example: 'firebase-token-abc123' } }, required: ['fcmToken'] } })
@ApiResponse({ status: 201, type: MessageResponseDto })
updateFcmToken(
@CurrentUser('id') userId: string,