-
Notifications
You must be signed in to change notification settings - Fork 0
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 #37 from DigiLabChallengeHackathon/develop
�rel: refactor clearStage
- Loading branch information
Showing
10 changed files
with
51 additions
and
161 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
45 changes: 8 additions & 37 deletions
45
src/main/java/com/mosabulgyeo/bewavoca/dto/CharacterResponse.java
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 |
---|---|---|
@@ -1,52 +1,23 @@ | ||
package com.mosabulgyeo.bewavoca.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* CharacterResponse 클래스 | ||
* 캐릭터 정보를 반환하기 위한 DTO 클래스. | ||
*/ | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
public class CharacterResponse { | ||
|
||
/** | ||
* 캐릭터 고유 ID. | ||
*/ | ||
private Long id; | ||
|
||
/** | ||
* 캐릭터 이름. | ||
* 예: "제주도민 캐릭터" | ||
*/ | ||
private String name; | ||
|
||
/** | ||
* 캐릭터 설명. | ||
* 캐릭터의 간단한 소개를 포함. | ||
*/ | ||
private String description; | ||
|
||
/** | ||
* 캐릭터 대사. | ||
* 예: "안녕하세요! 제주도에 오신 것을 환영합니다." | ||
*/ | ||
private String dialogue; | ||
|
||
/** | ||
* 캐릭터 표정에 따른 이미지 경로. | ||
* Key: 표정 (e.g., "happy", "sad"), Value: 이미지 경로. | ||
*/ | ||
private Map<String, String> appearances; | ||
|
||
/** | ||
* 캐릭터가 속한 지역 이름. | ||
* 예: "제주시", "서귀포시". | ||
*/ | ||
private String regionName; | ||
|
||
public CharacterResponse(Long id, String name, String description, String dialogue, String regionName) { | ||
this.id = id; | ||
this.name = name; | ||
this.description = description; | ||
this.dialogue = dialogue; | ||
this.regionName = regionName; | ||
} | ||
} |
35 changes: 12 additions & 23 deletions
35
src/main/java/com/mosabulgyeo/bewavoca/dto/CompleteQuizRequest.java
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 |
---|---|---|
@@ -1,35 +1,24 @@ | ||
package com.mosabulgyeo.bewavoca.dto; | ||
|
||
import jakarta.validation.constraints.Min; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import jakarta.validation.constraints.NotBlank; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* 퀴즈 완료 요청 데이터 전송 객체 | ||
*/ | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Setter | ||
public class CompleteQuizRequest { | ||
@NotBlank(message = "Device ID is required.") | ||
private String deviceId; | ||
|
||
@NotNull(message = "User ID is required.") | ||
@Min(value = 1, message = "User ID must be a positive number.") | ||
private Long userId; | ||
|
||
@NotNull(message = "Region ID is required.") | ||
@Min(value = 1, message = "Region ID must be a positive number.") | ||
private Long regionId; | ||
|
||
@NotNull(message = "Stage type is required.") | ||
private StageType stageType; | ||
@Min(value = 1, message = "Region must be greater than 0.") | ||
private int region; | ||
|
||
@NotNull(message = "Pass/fail result is required.") | ||
private Boolean isPassed; | ||
@Min(value = 1, message = "Stage must be greater than 0.") | ||
private int stage; | ||
|
||
public enum StageType { | ||
OX, MATCH, CHOICE | ||
} | ||
private boolean isSuccess; | ||
} |
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
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