-
Notifications
You must be signed in to change notification settings - Fork 0
20260422 #27 행성 지역 해금 도메인 구현 #42
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
Merged
The head ref may contain hidden characters: "20260422_#27_\uD589\uC131_\uC9C0\uC5ED_\uD574\uAE08_\uB3C4\uBA54\uC778_\uAD6C\uD604"
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
82bd9b8
탐험 도메인 구현 : feat : 탐험 ErrorCode 5종 + INSUFFICIENT_FUEL 응답 보강 #27
EM-H20 8b06bd4
탐험 도메인 구현 : feat : NodeType enum + Converter 추가 #27
EM-H20 905a830
탐험 도메인 구현 : feat : ExplorationNode 마스터 엔티티 추가 #27
EM-H20 596527b
탐험 도메인 구현 : feat : UserExploration 진행 엔티티 추가 #27
EM-H20 b348ba3
탐험 도메인 구현 : feat : Exploration Repository 2종 + 테스트 #27
EM-H20 1f5d1a0
탐험 도메인 구현 : test : ErrorResponse @JsonInclude 직렬화 검증 추가 #27
EM-H20 360da35
탐험 도메인 구현 : feat : Exploration DTO 6종 추가 #27
EM-H20 538d468
탐험 도메인 구현 : feat : ExplorationService 목록 조회 2종 #27
EM-H20 256b768
탐험 도메인 구현 : feat : 지역 해금 로직 + 잔량 pre-check + 자동 클리어 #27
EM-H20 80fd61e
탐험 도메인 구현 : feat : 행성 해금 로직 + 선행 클리어 게이트 #27
EM-H20 5e46f7b
탐험 도메인 구현 : test : 해금 서비스 에러 경로에 ErrorCode 검증 추가 #27
EM-H20 9b8dce5
탐험 도메인 구현 : feat : ExplorationController 4 엔드포인트 + 테스트 #27
EM-H20 ba500de
탐험 도메인 구현 : chore : exploration 테이블 + 시드 38노드 마이그레이션 #27
EM-H20 0064c99
탐험 도메인 구현 : docs : 05_exploration 스펙 frontend 계약 정합 갱신 #27
EM-H20 00084e0
docs : 구현 문서 #27
EM-H20 a24577a
탐험 도메인 구현 : fix : 무료 지역(requiredFuel=0) 행성 클리어 누락 수정 + 진행도 일관성 #27
EM-H20 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 hidden or 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 hidden or 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 hidden or 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
15 changes: 12 additions & 3 deletions
15
SS-Common/src/main/java/com/elipair/spacestudyship/common/exception/ErrorResponse.java
This file contains hidden or 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,14 +1,23 @@ | ||
| package com.elipair.spacestudyship.common.exception; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
|
||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public record ErrorResponse( | ||
| String code, | ||
| String message | ||
| String message, | ||
| Integer requiredFuel, | ||
| Integer currentFuel | ||
| ) { | ||
| public static ErrorResponse of(ErrorCode errorCode) { | ||
| return new ErrorResponse(errorCode.name(), errorCode.getMessage()); | ||
| return new ErrorResponse(errorCode.name(), errorCode.getMessage(), null, null); | ||
| } | ||
|
|
||
| public static ErrorResponse of(ErrorCode errorCode, String message) { | ||
| return new ErrorResponse(errorCode.name(), message); | ||
| return new ErrorResponse(errorCode.name(), message, null, null); | ||
| } | ||
|
|
||
| public static ErrorResponse ofInsufficientFuel(String message, int requiredFuel, int currentFuel) { | ||
| return new ErrorResponse(ErrorCode.INSUFFICIENT_FUEL.name(), message, requiredFuel, currentFuel); | ||
| } | ||
| } |
This file contains hidden or 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
16 changes: 16 additions & 0 deletions
16
.../src/main/java/com/elipair/spacestudyship/common/exception/InsufficientFuelException.java
This file contains hidden or 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,16 @@ | ||
| package com.elipair.spacestudyship.common.exception; | ||
|
|
||
| import lombok.Getter; | ||
|
|
||
| @Getter | ||
| public class InsufficientFuelException extends RuntimeException { | ||
|
|
||
| private final int requiredFuel; | ||
| private final int currentFuel; | ||
|
|
||
| public InsufficientFuelException(int requiredFuel, int currentFuel) { | ||
| super(ErrorCode.INSUFFICIENT_FUEL.getMessage()); | ||
| this.requiredFuel = requiredFuel; | ||
| this.currentFuel = currentFuel; | ||
| } | ||
| } |
53 changes: 53 additions & 0 deletions
53
SS-Common/src/test/java/com/elipair/spacestudyship/common/exception/ErrorResponseTest.java
This file contains hidden or 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,53 @@ | ||
| package com.elipair.spacestudyship.common.exception; | ||
|
|
||
| import com.fasterxml.jackson.databind.ObjectMapper; | ||
| import org.junit.jupiter.api.DisplayName; | ||
| import org.junit.jupiter.api.Test; | ||
|
|
||
| import static org.assertj.core.api.Assertions.assertThat; | ||
|
|
||
| class ErrorResponseTest { | ||
|
|
||
| private final ObjectMapper objectMapper = new ObjectMapper(); | ||
|
|
||
| @Test | ||
| @DisplayName("of(ErrorCode): requiredFuel/currentFuel은 null") | ||
| void of_basic_nullFuelFields() { | ||
| ErrorResponse r = ErrorResponse.of(ErrorCode.PLANET_NOT_FOUND); | ||
| assertThat(r.code()).isEqualTo("PLANET_NOT_FOUND"); | ||
| assertThat(r.requiredFuel()).isNull(); | ||
| assertThat(r.currentFuel()).isNull(); | ||
| } | ||
|
|
||
| @Test | ||
| @DisplayName("ofInsufficientFuel: 연료 수치 포함") | ||
| void ofInsufficientFuel_includesAmounts() { | ||
| ErrorResponse r = ErrorResponse.ofInsufficientFuel("연료가 부족합니다.", 10, 4); | ||
| assertThat(r.code()).isEqualTo("INSUFFICIENT_FUEL"); | ||
| assertThat(r.requiredFuel()).isEqualTo(10); | ||
| assertThat(r.currentFuel()).isEqualTo(4); | ||
| } | ||
|
|
||
| @Test | ||
| @DisplayName("InsufficientFuelException: 게터로 수치 노출") | ||
| void exception_getters() { | ||
| InsufficientFuelException ex = new InsufficientFuelException(10, 4); | ||
| assertThat(ex.getRequiredFuel()).isEqualTo(10); | ||
| assertThat(ex.getCurrentFuel()).isEqualTo(4); | ||
| } | ||
|
|
||
| @Test | ||
| @DisplayName("@JsonInclude(NON_NULL): null 연료 필드는 JSON에서 제외, 연료 필드 있으면 JSON에 포함") | ||
| void jsonInclude_nonNull_wireContract() throws Exception { | ||
| String basicJson = objectMapper.writeValueAsString(ErrorResponse.of(ErrorCode.MEMBER_NOT_FOUND)); | ||
| assertThat(basicJson).doesNotContain("requiredFuel"); | ||
| assertThat(basicJson).doesNotContain("currentFuel"); | ||
|
|
||
| String fuelJson = objectMapper.writeValueAsString( | ||
| ErrorResponse.ofInsufficientFuel("연료가 부족합니다.", 10, 4)); | ||
| assertThat(fuelJson).contains("requiredFuel"); | ||
| assertThat(fuelJson).contains("currentFuel"); | ||
| assertThat(fuelJson).contains("10"); | ||
| assertThat(fuelJson).contains("4"); | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
SS-Study/src/main/java/com/elipair/spacestudyship/study/exploration/constant/NodeType.java
This file contains hidden or 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,15 @@ | ||
| package com.elipair.spacestudyship.study.exploration.constant; | ||
|
|
||
| public enum NodeType { | ||
| PLANET, | ||
| REGION; | ||
|
|
||
| /** DB 컬럼/JSON 직렬화용 소문자 표현 ("planet" / "region"). */ | ||
| public String value() { | ||
| return name().toLowerCase(); | ||
| } | ||
|
|
||
| public static NodeType from(String value) { | ||
| return NodeType.valueOf(value.toUpperCase()); | ||
| } | ||
| } |
18 changes: 18 additions & 0 deletions
18
...rc/main/java/com/elipair/spacestudyship/study/exploration/constant/NodeTypeConverter.java
This file contains hidden or 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,18 @@ | ||
| package com.elipair.spacestudyship.study.exploration.constant; | ||
|
|
||
| import jakarta.persistence.AttributeConverter; | ||
| import jakarta.persistence.Converter; | ||
|
|
||
| @Converter | ||
| public class NodeTypeConverter implements AttributeConverter<NodeType, String> { | ||
|
|
||
| @Override | ||
| public String convertToDatabaseColumn(NodeType attribute) { | ||
| return attribute == null ? null : attribute.value(); | ||
| } | ||
|
|
||
| @Override | ||
| public NodeType convertToEntityAttribute(String dbData) { | ||
| return dbData == null ? null : NodeType.from(dbData); | ||
| } | ||
| } |
36 changes: 36 additions & 0 deletions
36
SS-Study/src/main/java/com/elipair/spacestudyship/study/exploration/dto/PlanetResponse.java
This file contains hidden or 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,36 @@ | ||
| package com.elipair.spacestudyship.study.exploration.dto; | ||
|
|
||
| import com.elipair.spacestudyship.study.exploration.entity.ExplorationNode; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
|
|
||
| import java.time.LocalDateTime; | ||
| import java.time.ZoneOffset; | ||
| import java.time.format.DateTimeFormatter; | ||
|
|
||
| @Schema(description = "행성 응답") | ||
| public record PlanetResponse( | ||
| String id, String name, String nodeType, int depth, String icon, | ||
| @Schema(nullable = true) String parentId, | ||
| @Schema(nullable = true) String prerequisiteId, | ||
| int requiredFuel, boolean isUnlocked, boolean isCleared, int sortOrder, | ||
| String description, double mapX, double mapY, | ||
| @Schema(nullable = true, example = "2026-04-01T00:00:00Z") String unlockedAt, | ||
| ProgressDto progress | ||
| ) { | ||
| private static final DateTimeFormatter ISO_UTC = DateTimeFormatter.ISO_INSTANT; | ||
|
|
||
| public static PlanetResponse of(ExplorationNode n, boolean isUnlocked, boolean isCleared, | ||
| int clearedChildren, int totalChildren, double progressRatio, | ||
| LocalDateTime unlockedAt) { | ||
| return new PlanetResponse( | ||
| n.getId(), n.getName(), n.getNodeType().value(), n.getDepth(), n.getIcon(), | ||
| n.getParentId(), n.getPrerequisiteNodeId(), n.getRequiredFuel(), | ||
| isUnlocked, isCleared, n.getSortOrder(), n.getDescription(), n.getMapX(), n.getMapY(), | ||
| formatUtc(unlockedAt), | ||
| new ProgressDto(clearedChildren, totalChildren, progressRatio)); | ||
| } | ||
|
|
||
| private static String formatUtc(LocalDateTime time) { | ||
| return time == null ? null : ISO_UTC.format(time.toInstant(ZoneOffset.UTC)); | ||
| } | ||
| } | ||
17 changes: 17 additions & 0 deletions
17
.../src/main/java/com/elipair/spacestudyship/study/exploration/dto/PlanetUnlockResponse.java
This file contains hidden or 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 @@ | ||
| package com.elipair.spacestudyship.study.exploration.dto; | ||
|
|
||
| import com.elipair.spacestudyship.study.exploration.entity.ExplorationNode; | ||
| import com.elipair.spacestudyship.study.exploration.entity.UserExploration; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
|
|
||
| @Schema(description = "행성 해금 응답") | ||
| public record PlanetUnlockResponse( | ||
| UnlockedNodeDto planet, int fuelConsumed, int currentFuel | ||
| ) { | ||
| public static PlanetUnlockResponse of(ExplorationNode planet, UserExploration progress, | ||
| int fuelConsumed, int currentFuel) { | ||
| return new PlanetUnlockResponse( | ||
| UnlockedNodeDto.of(planet, progress, false), | ||
| fuelConsumed, currentFuel); | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions
10
SS-Study/src/main/java/com/elipair/spacestudyship/study/exploration/dto/ProgressDto.java
This file contains hidden or 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,10 @@ | ||
| package com.elipair.spacestudyship.study.exploration.dto; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
|
|
||
| @Schema(description = "행성 진행도") | ||
| public record ProgressDto( | ||
| @Schema(example = "3") int clearedChildren, | ||
| @Schema(example = "5") int totalChildren, | ||
| @Schema(example = "0.6") double progressRatio | ||
| ) {} |
32 changes: 32 additions & 0 deletions
32
SS-Study/src/main/java/com/elipair/spacestudyship/study/exploration/dto/RegionResponse.java
This file contains hidden or 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,32 @@ | ||
| package com.elipair.spacestudyship.study.exploration.dto; | ||
|
|
||
| import com.elipair.spacestudyship.study.exploration.entity.ExplorationNode; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
|
|
||
| import java.time.LocalDateTime; | ||
| import java.time.ZoneOffset; | ||
| import java.time.format.DateTimeFormatter; | ||
|
|
||
| @Schema(description = "지역 응답") | ||
| public record RegionResponse( | ||
| String id, String name, String nodeType, int depth, String icon, | ||
| @Schema(nullable = true) String parentId, | ||
| int requiredFuel, boolean isUnlocked, boolean isCleared, int sortOrder, | ||
| String description, double mapX, double mapY, | ||
| @Schema(nullable = true, example = "2026-04-05T15:30:00Z") String unlockedAt | ||
| ) { | ||
| private static final DateTimeFormatter ISO_UTC = DateTimeFormatter.ISO_INSTANT; | ||
|
|
||
| public static RegionResponse of(ExplorationNode n, boolean isUnlocked, boolean isCleared, | ||
| LocalDateTime unlockedAt) { | ||
| return new RegionResponse( | ||
| n.getId(), n.getName(), n.getNodeType().value(), n.getDepth(), n.getIcon(), | ||
| n.getParentId(), n.getRequiredFuel(), isUnlocked, isCleared, | ||
| n.getSortOrder(), n.getDescription(), n.getMapX(), n.getMapY(), | ||
| formatUtc(unlockedAt)); | ||
| } | ||
|
|
||
| private static String formatUtc(LocalDateTime time) { | ||
| return time == null ? null : ISO_UTC.format(time.toInstant(ZoneOffset.UTC)); | ||
| } | ||
| } |
17 changes: 17 additions & 0 deletions
17
.../src/main/java/com/elipair/spacestudyship/study/exploration/dto/RegionUnlockResponse.java
This file contains hidden or 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 @@ | ||
| package com.elipair.spacestudyship.study.exploration.dto; | ||
|
|
||
| import com.elipair.spacestudyship.study.exploration.entity.ExplorationNode; | ||
| import com.elipair.spacestudyship.study.exploration.entity.UserExploration; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
|
|
||
| @Schema(description = "지역 해금 응답") | ||
| public record RegionUnlockResponse( | ||
| UnlockedNodeDto region, int fuelConsumed, int currentFuel, boolean planetCleared | ||
| ) { | ||
| public static RegionUnlockResponse of(ExplorationNode region, UserExploration progress, | ||
| int fuelConsumed, int currentFuel, boolean planetCleared) { | ||
| return new RegionUnlockResponse( | ||
| UnlockedNodeDto.of(region, progress, true), | ||
| fuelConsumed, currentFuel, planetCleared); | ||
| } | ||
| } |
27 changes: 27 additions & 0 deletions
27
SS-Study/src/main/java/com/elipair/spacestudyship/study/exploration/dto/UnlockedNodeDto.java
This file contains hidden or 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,27 @@ | ||
| package com.elipair.spacestudyship.study.exploration.dto; | ||
|
|
||
| import com.elipair.spacestudyship.study.exploration.entity.ExplorationNode; | ||
| import com.elipair.spacestudyship.study.exploration.entity.UserExploration; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
|
|
||
| import java.time.LocalDateTime; | ||
| import java.time.ZoneOffset; | ||
| import java.time.format.DateTimeFormatter; | ||
|
|
||
| @Schema(description = "해금된 노드 요약") | ||
| public record UnlockedNodeDto( | ||
| String id, String name, boolean isUnlocked, boolean isCleared, | ||
| @Schema(example = "2026-04-16T11:00:00Z") String unlockedAt | ||
| ) { | ||
| private static final DateTimeFormatter ISO_UTC = DateTimeFormatter.ISO_INSTANT; | ||
|
|
||
| public static UnlockedNodeDto of(ExplorationNode node, UserExploration progress, boolean cleared) { | ||
| return new UnlockedNodeDto( | ||
| node.getId(), node.getName(), true, cleared, | ||
| formatUtc(progress.getUnlockedAt())); | ||
| } | ||
|
|
||
| private static String formatUtc(LocalDateTime time) { | ||
| return time == null ? null : ISO_UTC.format(time.toInstant(ZoneOffset.UTC)); | ||
| } | ||
| } |
61 changes: 61 additions & 0 deletions
61
...dy/src/main/java/com/elipair/spacestudyship/study/exploration/entity/ExplorationNode.java
This file contains hidden or 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,61 @@ | ||
| package com.elipair.spacestudyship.study.exploration.entity; | ||
|
|
||
| import com.elipair.spacestudyship.study.exploration.constant.NodeType; | ||
| import com.elipair.spacestudyship.study.exploration.constant.NodeTypeConverter; | ||
| import jakarta.persistence.Column; | ||
| import jakarta.persistence.Convert; | ||
| import jakarta.persistence.Entity; | ||
| import jakarta.persistence.Id; | ||
| import jakarta.persistence.Table; | ||
| import lombok.AccessLevel; | ||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Getter; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Entity | ||
| @Table(name = "exploration_nodes") | ||
| @Getter | ||
| @Builder | ||
| @AllArgsConstructor | ||
| @NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
| public class ExplorationNode { | ||
|
|
||
| @Id | ||
| @Column(length = 50) | ||
| private String id; | ||
|
|
||
| @Column(nullable = false, length = 50) | ||
| private String name; | ||
|
|
||
| @Convert(converter = NodeTypeConverter.class) | ||
| @Column(name = "node_type", nullable = false, length = 10) | ||
| private NodeType nodeType; | ||
|
|
||
| @Column(nullable = false) | ||
| private int depth; | ||
|
|
||
| @Column(nullable = false, length = 30) | ||
| private String icon; | ||
|
|
||
| @Column(name = "parent_id", length = 50) | ||
| private String parentId; | ||
|
|
||
| @Column(name = "prerequisite_node_id", length = 50) | ||
| private String prerequisiteNodeId; | ||
|
|
||
| @Column(name = "required_fuel", nullable = false) | ||
| private int requiredFuel; | ||
|
|
||
| @Column(name = "sort_order", nullable = false) | ||
| private int sortOrder; | ||
|
|
||
| @Column(nullable = false, length = 200) | ||
| private String description; | ||
|
|
||
| @Column(name = "map_x", nullable = false) | ||
| private double mapX; | ||
|
|
||
| @Column(name = "map_y", nullable = false) | ||
| private double mapY; | ||
| } |
Oops, something went wrong.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: SpaceStudyShip/SpaceStudyShip-BE
Length of output: 13277
unlockedAtUTC 변환 가정을 점검해 주세요.UserExploration.unlockedAt은UserExploration.unlock()에서LocalDateTime.now()로 저장(타임존 정보 없음)되는데,PlanetResponse.formatUtc()는 이를toInstant(ZoneOffset.UTC)로 UTC 기준 가정 후ISO_INSTANT(Z접미사)로 직렬화합니다. 서버 기본 타임존이 UTC가 아니면 클라이언트에 내려가는 시각이 실제 저장/의도와 어긋날 수 있습니다. UTC 기준으로 저장하거나, 출력 시 타임존 오프셋을 함께 적용해Instant로 변환하는 방식으로 통일해 주세요.🤖 Prompt for AI Agents