Commit f3c2220c authored by Diego Iván's avatar Diego Iván
Browse files

creando dto para la req al crear un town

parent b1d80bb0
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
import { ApiProperty } from '@nestjs/swagger';
import { Binary } from 'typeorm';

export class CreateTownReqDto {
  @ApiProperty()
  name: string;

  @ApiProperty({
    type: String,
    description: 'Language content for Spanish (es)',
  })
  descriptionES: string;

  @ApiProperty({
    type: String,
    description: 'Language content for English (en)',
  })
  descriptionEN: string;

  @ApiProperty({ type: 'string', format: 'binary' })
  image: Binary;
  @ApiProperty()
  state: number;
}