import { BaseStatusDto } from 'src/core/modules/infrastructure/dto/base-status.dto';
import { NewsEntity } from '../../domain/entities/news.entity';
import { ApiProperty } from '@nestjs/swagger';

export class NewsDto extends BaseStatusDto implements NewsEntity {
  @ApiProperty({
    type: String,
    required: false,
    example: 'https://...',
  })
  image_url: string;

  @ApiProperty({
    type: String,
    required: true,
    example: 'The Flash Speed Force',
  })
  title: string;

  @ApiProperty({
    type: String,
    required: false,
    example: 'Get ready to take on the first ride-within-a-ride experience',
  })
  teaser: string;

  @ApiProperty({
    type: String,
    required: false,
    example: 'description',
  })
  description: string;
}
