Loading backend/src/place/dto/create-place-date.dto.ts +6 −3 Original line number Diff line number Diff line Loading @@ -26,11 +26,14 @@ export class CreatePlaceDateTradDto { @ApiProperty({ type: 'string', format: 'binary' }) image; @ApiProperty() latitude: number; @ApiProperty({ type: 'decimal' }) latitude; @ApiProperty({ type: 'decimal' }) longitude; @ApiProperty() longitude: number; address: string; // 24-hour format @ApiProperty({ maximum: 24, minimum: 0 }) Loading backend/src/place/dto/create-place.dto.ts +3 −2 Original line number Diff line number Diff line Loading @@ -7,8 +7,9 @@ export class CreatePlaceDto { name: string; imageName: string; town: Town; latitude: number; longitude: number; latitude: 'decimal'; longitude: 'decimal'; address: string; openAt: number; closeAt: number; categories: Category[]; Loading backend/src/place/dto/get-place.dto.ts +3 −0 Original line number Diff line number Diff line Loading @@ -27,4 +27,7 @@ export class GetPlaceDto { endDate: Date; @ApiProperty() categories: any[]; @ApiProperty() address: string; } backend/src/place/entities/place.entity.ts +6 −3 Original line number Diff line number Diff line Loading @@ -46,11 +46,14 @@ export class Place { @Column() imageName: string; @Column({ nullable: false }) latitude: number; @Column({ nullable: false, type: 'decimal', precision: 10, scale: 8 }) latitude; @Column({ nullable: false, type: 'decimal', precision: 10, scale: 8 }) longitude; @Column({ nullable: false }) longitude: number; address: string; @Column({ nullable: false }) openAt: number; Loading backend/src/place/place.service.ts +3 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ export class PlaceService { openAt: createPlaceDto.openAt, imageName: createPlaceDto.image.filename, categories: categories, address: createPlaceDto.address, }; if (!town) { Loading Loading @@ -105,6 +106,7 @@ export class PlaceService { endDate: place.availableDates[0]?.endDate || null, categories: place.categories, description: place.placeTraduction[0].description, address: place.address, }; }); return places; Loading Loading @@ -140,6 +142,7 @@ export class PlaceService { endDate: place.availableDates[0]?.endDate, categories: place.categories, description: place.placeTraduction[0].description, address: place.address, }; return res; } Loading Loading
backend/src/place/dto/create-place-date.dto.ts +6 −3 Original line number Diff line number Diff line Loading @@ -26,11 +26,14 @@ export class CreatePlaceDateTradDto { @ApiProperty({ type: 'string', format: 'binary' }) image; @ApiProperty() latitude: number; @ApiProperty({ type: 'decimal' }) latitude; @ApiProperty({ type: 'decimal' }) longitude; @ApiProperty() longitude: number; address: string; // 24-hour format @ApiProperty({ maximum: 24, minimum: 0 }) Loading
backend/src/place/dto/create-place.dto.ts +3 −2 Original line number Diff line number Diff line Loading @@ -7,8 +7,9 @@ export class CreatePlaceDto { name: string; imageName: string; town: Town; latitude: number; longitude: number; latitude: 'decimal'; longitude: 'decimal'; address: string; openAt: number; closeAt: number; categories: Category[]; Loading
backend/src/place/dto/get-place.dto.ts +3 −0 Original line number Diff line number Diff line Loading @@ -27,4 +27,7 @@ export class GetPlaceDto { endDate: Date; @ApiProperty() categories: any[]; @ApiProperty() address: string; }
backend/src/place/entities/place.entity.ts +6 −3 Original line number Diff line number Diff line Loading @@ -46,11 +46,14 @@ export class Place { @Column() imageName: string; @Column({ nullable: false }) latitude: number; @Column({ nullable: false, type: 'decimal', precision: 10, scale: 8 }) latitude; @Column({ nullable: false, type: 'decimal', precision: 10, scale: 8 }) longitude; @Column({ nullable: false }) longitude: number; address: string; @Column({ nullable: false }) openAt: number; Loading
backend/src/place/place.service.ts +3 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ export class PlaceService { openAt: createPlaceDto.openAt, imageName: createPlaceDto.image.filename, categories: categories, address: createPlaceDto.address, }; if (!town) { Loading Loading @@ -105,6 +106,7 @@ export class PlaceService { endDate: place.availableDates[0]?.endDate || null, categories: place.categories, description: place.placeTraduction[0].description, address: place.address, }; }); return places; Loading Loading @@ -140,6 +142,7 @@ export class PlaceService { endDate: place.availableDates[0]?.endDate, categories: place.categories, description: place.placeTraduction[0].description, address: place.address, }; return res; } Loading