-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop_back_core' into feat/announcement-B-#576
- Loading branch information
Showing
10 changed files
with
108 additions
and
7 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
8 changes: 8 additions & 0 deletions
8
...ava/site/timecapsulearchive/core/domain/capsuleskin/data/dto/CapsuleSkinDeleteResult.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package site.timecapsulearchive.core.domain.capsuleskin.data.dto; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum CapsuleSkinDeleteResult { | ||
FAIL, SUCCESS | ||
} |
15 changes: 15 additions & 0 deletions
15
.../site/timecapsulearchive/core/domain/capsuleskin/data/dto/CapsuleSkinDeleteResultDto.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package site.timecapsulearchive.core.domain.capsuleskin.data.dto; | ||
|
||
public record CapsuleSkinDeleteResultDto( | ||
CapsuleSkinDeleteResult capsuleSkinDeleteResult, | ||
String message | ||
) { | ||
|
||
public static CapsuleSkinDeleteResultDto fail() { | ||
return new CapsuleSkinDeleteResultDto(CapsuleSkinDeleteResult.FAIL, "캡슐 스킨이 존재하지 않거나 캡슐에 사용되고 있습니다."); | ||
} | ||
|
||
public static CapsuleSkinDeleteResultDto success() { | ||
return new CapsuleSkinDeleteResultDto(CapsuleSkinDeleteResult.SUCCESS, "캡슐 스킨 삭제에 성공했습니다."); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...capsulearchive/core/domain/capsuleskin/data/response/CapsuleSkinDeleteResultResponse.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package site.timecapsulearchive.core.domain.capsuleskin.data.response; | ||
|
||
import site.timecapsulearchive.core.domain.capsuleskin.data.dto.CapsuleSkinDeleteResult; | ||
import site.timecapsulearchive.core.domain.capsuleskin.data.dto.CapsuleSkinDeleteResultDto; | ||
|
||
public record CapsuleSkinDeleteResultResponse( | ||
CapsuleSkinDeleteResult capsuleSkinDeleteResult, | ||
String message | ||
) { | ||
|
||
public static CapsuleSkinDeleteResultResponse createOf( | ||
CapsuleSkinDeleteResultDto capsuleSkinDeleteResultDto) { | ||
return new CapsuleSkinDeleteResultResponse( | ||
capsuleSkinDeleteResultDto.capsuleSkinDeleteResult(), | ||
capsuleSkinDeleteResultDto.message() | ||
); | ||
} | ||
} |
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