-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from boostcampwm2023/BE/release
[BE] : 1.0.0 ๋ฐฐํฌ
- Loading branch information
Showing
36 changed files
with
316 additions
and
3,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsString, IsDateString } from 'class-validator'; | ||
import { UUID } from 'crypto'; | ||
|
||
export class SpotDTO { | ||
@ApiProperty({ description: '์ฌ์ ID', example: '65649c91380cafcab8869ed2' }) | ||
readonly journeyId: string; | ||
|
||
@ApiProperty({ description: 'spot ์์น', example: [37.555913, 126.972313] }) | ||
readonly coordinate: number[]; | ||
|
||
@ApiProperty({ description: '๊ธฐ๋ก ์๊ฐ', example: '2023-11-22T12:00:00Z' }) | ||
readonly timestamp: string; | ||
|
||
@ApiProperty({ | ||
description: 'presigned url', | ||
example: | ||
'https://music-spot-storage.kr.object.ncloudstorage.com/path/name?AWSAccessKeyId=key&Expires=sec&Signature=signature', | ||
}) | ||
readonly photoUrl: string; | ||
} | ||
|
||
class journeyMetadataDto { | ||
@ApiProperty({ | ||
description: '์ฌ์ ์์ ์๊ฐ', | ||
example: '2023-11-22T15:30:00.000+09:00', | ||
}) | ||
readonly startTimestamp: string; | ||
|
||
@ApiProperty({ | ||
description: '์ฌ์ ์ข ๋ฃ ์๊ฐ', | ||
example: '2023-11-22T15:30:00.000+09:00', | ||
}) | ||
readonly endTimestamp: string; | ||
} | ||
|
||
export class JourneyDTO { | ||
@ApiProperty({ description: '์ฌ์ ID', example: '65649c91380cafcab8869ed2' }) | ||
readonly _id: string; | ||
|
||
@ApiProperty({ description: '์ฌ์ ์ ๋ชฉ', example: '์ฌ์ ์ ๋ชฉ' }) | ||
readonly title: string; | ||
|
||
@ApiProperty({ type: [SpotDTO], description: 'spot ๋ฐฐ์ด' }) | ||
readonly spots: SpotDTO[]; | ||
|
||
@ApiProperty({ | ||
description: '์์น ์ขํ ๋ฐฐ์ด', | ||
example: [ | ||
[37.775, 122.4195], | ||
[37.7752, 122.4197], | ||
[37.7754, 122.4199], | ||
], | ||
}) | ||
readonly coordinates: number[][]; | ||
|
||
@ApiProperty({ description: '์ฌ์ ๋ฉํ๋ฐ์ดํฐ', type: journeyMetadataDto }) | ||
readonly journeyMetadata: journeyMetadataDto; | ||
} | ||
|
||
export class LastJourneyResDTO { | ||
@ApiProperty({ description: '์ฌ์ ID', example: '65649c91380cafcab8869ed2' }) | ||
readonly _id: string; | ||
|
||
@ApiProperty({ description: '์ฌ์ ์ ๋ชฉ', example: '์ฌ์ ์ ๋ชฉ' }) | ||
readonly title: string; | ||
|
||
@ApiProperty({ type: [SpotDTO], description: 'spot ๋ฐฐ์ด' }) | ||
readonly spots: SpotDTO[]; | ||
|
||
@ApiProperty({ | ||
description: '์์น ์ขํ ๋ฐฐ์ด', | ||
example: [ | ||
[37.775, 122.4195], | ||
[37.7752, 122.4197], | ||
[37.7754, 122.4199], | ||
], | ||
}) | ||
readonly coordinates: number[][]; | ||
|
||
@ApiProperty({ description: '์ฌ์ ๋ฉํ๋ฐ์ดํฐ', type: journeyMetadataDto }) | ||
readonly journeyMetadata: journeyMetadataDto; | ||
|
||
@ApiProperty({ description: '์ฌ์ ๋ง๋ฌด๋ฆฌ ์ฌ๋ถ' }) | ||
readonly isRecording: boolean; | ||
} |
Oops, something went wrong.