20 lines
657 B
TypeScript
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;
|
|
|
|
}
|