-
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 #94 from SWM-Flash/develop
Develop
- Loading branch information
Showing
63 changed files
with
1,014 additions
and
101 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
9 changes: 8 additions & 1 deletion
9
src/main/java/com/first/flash/account/member/application/dto/MemberReportRequest.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,7 +1,14 @@ | ||
package com.first.flash.account.member.application.dto; | ||
|
||
import com.first.flash.account.member.domain.ContentType; | ||
import com.first.flash.global.annotation.ValidEnum; | ||
import jakarta.validation.constraints.NotEmpty; | ||
|
||
public record MemberReportRequest(@NotEmpty(message = "신고 사유는 필수입니다.") String reason) { | ||
public record MemberReportRequest(@NotEmpty(message = "신고 사유는 필수입니다.") String reason, | ||
@ValidEnum(enumClass = ContentType.class) ContentType contentType) { | ||
|
||
public MemberReportRequest(final String reason, final ContentType contentType) { | ||
this.reason = reason; | ||
this.contentType = contentType != null ? contentType : ContentType.SOLUTION; | ||
} | ||
} |
9 changes: 6 additions & 3 deletions
9
src/main/java/com/first/flash/account/member/application/dto/MemberReportResponse.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,8 +1,11 @@ | ||
package com.first.flash.account.member.application.dto; | ||
|
||
public record MemberReportResponse(Long reportedContentId, String reason) { | ||
import com.first.flash.account.member.domain.ContentType; | ||
|
||
public static MemberReportResponse toDto(final Long reportedContentId, final String reason) { | ||
return new MemberReportResponse(reportedContentId, reason); | ||
public record MemberReportResponse(Long reportedContentId, String contentType, String reason) { | ||
|
||
public static MemberReportResponse toDto(final Long reportedContentId, | ||
final ContentType contentType, final String reason) { | ||
return new MemberReportResponse(reportedContentId, contentType.name(), reason); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/first/flash/account/member/domain/ContentType.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 com.first.flash.account.member.domain; | ||
|
||
import lombok.ToString; | ||
|
||
@ToString | ||
public enum ContentType { | ||
SOLUTION, COMMENT; | ||
} |
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
8 changes: 8 additions & 0 deletions
8
...om/first/flash/climbing/problem/application/dto/ProblemPerceivedDifficultyRequestDto.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 com.first.flash.climbing.problem.application.dto; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record ProblemPerceivedDifficultyRequestDto( | ||
@NotNull(message = "변경할 체감 난이도 수치는 필수입니다.") Integer perceivedDifficulty) { | ||
|
||
} |
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
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
Oops, something went wrong.