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

agregando dtos para pointOfInterest

parent 03f4f214
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
import { Place } from 'src/place/entities/place.entity';

export class CreatePointDto {
  idPlace: Place;
  name: string;
  imageName: string;
}
+18 −0
Original line number Diff line number Diff line
import { ApiProperty } from '@nestjs/swagger';

export class CreatePointAndTradDto {
  @ApiProperty()
  idPlace: number;
  @ApiProperty()
  name: string;
  @ApiProperty({ type: 'string', format: 'binary' })
  image;
  @ApiProperty()
  contentEN: string;
  @ApiProperty()
  contentES: string;
  @ApiProperty()
  directionsEN: string;
  @ApiProperty()
  directionsES: string;
}
+9 −0
Original line number Diff line number Diff line
import { LANGUAGES } from 'src/shared/enum/languages.enum';

export class CreatePointTradDto {
  language: LANGUAGES;
  idPoint: number;
  content: string;
  directions: string;
  audioName: string;
}
+4 −0
Original line number Diff line number Diff line
import { PartialType } from '@nestjs/swagger';
import { CreatePointAndTradDto } from './create-pointAndTraduction.dto';

export class UpdatePointDto extends PartialType(CreatePointAndTradDto) {}