-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BE] π : 1.0.0 λ°°ν¬ #323
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5de0ec2
[BE] : release (#304)
twoo1999 c671fcb
[BE] iOS νμΌ μ κ±° (#306)
twoo1999 d1516a8
[BE] : checjk fix (#308)
twoo1999 f6b64f0
[BE] β»οΈ : spot μ μ₯ μ journeyμ coordinatesμ spotμ coordinateμΆκ° (#311)
twoo1999 df066d2
[BE] β»οΈ : coordinate νλ³ decorator λ‘μ§ μμ λ° spot μ μ₯ μ μμΈμ²λ¦¬ (#314)
twoo1999 26df6e2
[BE] β»οΈ : λ§μ§λ§ journeyμ μλ£ μ¬λΆλ₯Ό νμΈνλ api λ‘μ§ μμ (#319)
twoo1999 966f35a
[BE] ios νμΌ μΆκ° (#320)
twoo1999 5e9732b
[BE] : λ°°ν¬ λ§ν¬ μΆκ° (#321)
twoo1999 23a9c68
[BE] λ°°ν¬ λ²μ μμ (#322)
twoo1999 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ΄κ±° νμΈ λΆνλλ €μ!