Files
dmenu-api/src/modules/restaurants/dto/active-restaurant-list-item.dto.ts
T
2026-06-21 16:54:42 +03:30

20 lines
657 B
TypeScript

import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
export class ActiveRestaurantListItemDto {
@ApiProperty({ example: 'zhivan', description: 'Restaurant slug' })
slug!: string;
@ApiProperty({ example: 'کافه ژیوان', description: 'Restaurant name' })
name!: string;
@ApiPropertyOptional({ example: 'تهران، خیابان ولیعصر پلاک ۱۲۳', description: 'Address' })
address?: string;
@ApiPropertyOptional({ example: 'https://example.com/logo.png', description: 'Logo URL' })
logo?: string;
@ApiPropertyOptional({ example: 2020, description: 'Established year' })
establishedYear?: number;
}