-
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.
[BE] 사용자는 각 단계의 결과를 확인할 수 있다. (#136)
* feat: 게임 진행 시 turnchanged 이벤트 * docs: swagger 작성 * chore: 보이스 처리 서버에 먼저 보내기
- Loading branch information
1 parent
f5c334d
commit c4cb5d4
Showing
6 changed files
with
252 additions
and
12 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
be/gameServer/src/modules/games/dto/voice-processing-result.dto.ts
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,17 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class VoiceProcessingResultDto { | ||
@ApiProperty({ | ||
example: 'player1', | ||
type: String, | ||
description: '플레이어 닉네임', | ||
}) | ||
playerNickname: string; | ||
|
||
@ApiProperty({ | ||
example: 'SUCCESS', | ||
type: String, | ||
description: '결과', | ||
}) | ||
result: string; | ||
} |
33 changes: 33 additions & 0 deletions
33
be/gameServer/src/modules/games/dto/voice-result-from-server.dto.ts
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,33 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class VoiceResultFromServerDto { | ||
@ApiProperty({ | ||
example: '6f42377f-42ea-42cc-ac1a-b5d2b99d4ced', | ||
type: String, | ||
description: '게임 방 ID', | ||
}) | ||
roomId: string; | ||
|
||
@ApiProperty({ | ||
example: 'player1', | ||
type: String, | ||
description: '해당 단계를 수행하는 플레이어 닉네임', | ||
}) | ||
playerNickname: string; | ||
|
||
@ApiProperty({ | ||
example: 92, | ||
type: Number, | ||
description: '발음게임 점수', | ||
required: false, | ||
}) | ||
pronounceScore?: number; | ||
|
||
@ApiProperty({ | ||
example: 'A#3', | ||
type: String, | ||
description: '음정게임 평균 음', | ||
required: false, | ||
}) | ||
averageNote?: string; | ||
} |
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