Spaces:
Sleeping
Sleeping
| import { ApiProperty } from '@nestjs/swagger'; | |
| import { | |
| IsArray, | |
| IsString, | |
| IsDateString, | |
| ArrayNotEmpty, | |
| } from 'class-validator'; | |
| export class ReturnBookDto { | |
| ({ | |
| description: 'Список ID книг, которые возвращаются', | |
| example: ['book1', 'book2'], | |
| }) | |
| () | |
| ({ message: 'bookIds cannot be empty' }) | |
| ({ each: true }) | |
| bookIds: string[]; | |
| ({ | |
| description: 'ID посетителя', | |
| example: 'visitor123', | |
| }) | |
| () | |
| visitorId: string; | |
| ({ | |
| description: 'ID сотрудника, который принимает книги', | |
| example: 'employee456', | |
| }) | |
| () | |
| workerId: string; | |
| ({ | |
| description: 'Дата возврата (ISO)', | |
| example: '2025-11-25', | |
| }) | |
| () | |
| returnDate: string; | |
| } | |