-
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 #88 from SWM-Flash/hotfix/FLASH-295-is-my-solution
내 해설 영상인지 여부 판단 로직을 인프라스트럭처 계층에서 응용 계층으로 이동
- Loading branch information
Showing
9 changed files
with
47 additions
and
28 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
2 changes: 1 addition & 1 deletion
2
src/main/java/com/first/flash/climbing/solution/application/dto/SolutionsResponseDto.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
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
19 changes: 19 additions & 0 deletions
19
src/main/java/com/first/flash/climbing/solution/domain/dto/SolutionResponseDto.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,19 @@ | ||
package com.first.flash.climbing.solution.domain.dto; | ||
|
||
import com.first.flash.climbing.solution.infrastructure.dto.SolutionRepositoryResponseDto; | ||
import com.first.flash.global.util.AuthUtil; | ||
import java.util.UUID; | ||
|
||
public record SolutionResponseDto(Long id, String uploader, String review, String instagramId, | ||
String videoUrl, UUID uploaderId, Boolean isUploader, | ||
String profileImageUrl, Long commentCount) { | ||
|
||
public static SolutionResponseDto from( | ||
final SolutionRepositoryResponseDto repositoryResponseDto) { | ||
return new SolutionResponseDto(repositoryResponseDto.id(), repositoryResponseDto.uploader(), | ||
repositoryResponseDto.review(), repositoryResponseDto.instagramId(), | ||
repositoryResponseDto.videoUrl(), repositoryResponseDto.uploaderId(), | ||
AuthUtil.isSameId(repositoryResponseDto.uploaderId()), | ||
repositoryResponseDto.profileImageUrl(), repositoryResponseDto.commentCount()); | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
...a/com/first/flash/climbing/solution/infrastructure/dto/SolutionRepositoryResponseDto.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,9 @@ | ||
package com.first.flash.climbing.solution.infrastructure.dto; | ||
|
||
import java.util.UUID; | ||
|
||
public record SolutionRepositoryResponseDto(Long id, String uploader, String review, | ||
String instagramId, String videoUrl, UUID uploaderId, | ||
String profileImageUrl, Long commentCount) { | ||
|
||
} |
9 changes: 0 additions & 9 deletions
9
src/main/java/com/first/flash/climbing/solution/infrastructure/dto/SolutionResponseDto.java
This file was deleted.
Oops, something went wrong.
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