find all rest
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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: 'SEO title' })
|
||||
title?: 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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user