-
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.
Browse files
Browse the repository at this point in the history
[FEAT] 게시물 블라인드 처리 기능 개발
- Loading branch information
Showing
6 changed files
with
221 additions
and
0 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
43 changes: 43 additions & 0 deletions
43
.../wable/www/WableServer/api/content/dto/response/ContentGetAllByMemberResponseDtoVer3.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,43 @@ | ||
package com.wable.www.WableServer.api.content.dto.response; | ||
|
||
import com.wable.www.WableServer.api.content.domain.Content; | ||
import com.wable.www.WableServer.api.member.domain.Member; | ||
|
||
public record ContentGetAllByMemberResponseDtoVer3( | ||
Long memberId, | ||
String memberProfileUrl, | ||
String memberNickname, | ||
Long contentId, | ||
String contentTitle, | ||
String contentText, | ||
String time, | ||
boolean isGhost, | ||
int memberGhost, | ||
boolean isLiked, | ||
int likedNumber, | ||
int commentNumber, | ||
String contentImageUrl, | ||
String memberFanTeam, | ||
Boolean isBlind | ||
|
||
) { | ||
public static ContentGetAllByMemberResponseDtoVer3 of(Member writerMember, int writerGhost, Content content, boolean isGhost, boolean isLiked, String time, int likedNumber, int commentNumber) { | ||
return new ContentGetAllByMemberResponseDtoVer3( | ||
writerMember.getId(), | ||
writerMember.getProfileUrl(), | ||
writerMember.getNickname(), | ||
content.getId(), | ||
content.getContentTitle(), | ||
content.getContentText(), | ||
time, | ||
isGhost, | ||
writerGhost, | ||
isLiked, | ||
likedNumber, | ||
commentNumber, | ||
content.getContentImage(), | ||
writerMember.getMemberFanTeam(), | ||
content.isBlind() | ||
); | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...java/com/wable/www/WableServer/api/content/dto/response/ContentGetAllResponseDtoVer4.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,45 @@ | ||
package com.wable.www.WableServer.api.content.dto.response; | ||
|
||
import com.wable.www.WableServer.api.content.domain.Content; | ||
import com.wable.www.WableServer.api.member.domain.Member; | ||
|
||
public record ContentGetAllResponseDtoVer4( | ||
Long memberId, | ||
String memberProfileUrl, | ||
String memberNickname, | ||
Long contentId, | ||
String contentTitle, | ||
String contentText, | ||
String time, | ||
boolean isGhost, | ||
int memberGhost, | ||
boolean isLiked, | ||
int likedNumber, | ||
int commentNumber, | ||
Boolean isDeleted, | ||
String contentImageUrl, | ||
String memberFanTeam, | ||
Boolean isBlind | ||
|
||
) { | ||
public static ContentGetAllResponseDtoVer4 of(Member writerMember, Content content, boolean isGhost, int refinedMemberGhost, boolean isLiked, String time, int likedNumber, int commentNumber) { | ||
return new ContentGetAllResponseDtoVer4( | ||
writerMember.getId(), | ||
writerMember.getProfileUrl(), | ||
writerMember.getNickname(), | ||
content.getId(), | ||
content.getContentTitle(), | ||
content.getContentText(), | ||
time, | ||
isGhost, | ||
refinedMemberGhost, | ||
isLiked, | ||
likedNumber, | ||
commentNumber, | ||
writerMember.isDeleted(), | ||
content.getContentImage(), | ||
writerMember.getMemberFanTeam(), | ||
content.isBlind() | ||
); | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
.../com/wable/www/WableServer/api/content/dto/response/ContentGetDetailsResponseDtoVer4.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,43 @@ | ||
package com.wable.www.WableServer.api.content.dto.response; | ||
|
||
import com.wable.www.WableServer.api.content.domain.Content; | ||
import com.wable.www.WableServer.api.member.domain.Member; | ||
|
||
public record ContentGetDetailsResponseDtoVer4( | ||
Long memberId, | ||
String memberProfileUrl, | ||
String memberNickname, | ||
boolean isGhost, | ||
int memberGhost, | ||
boolean isLiked, | ||
String time, | ||
int likedNumber, | ||
int commentNumber, | ||
String contentTitle, | ||
String contentText, | ||
Boolean isDeleted, | ||
String contentImageUrl, | ||
String memberFanTeam, | ||
Boolean isBlind | ||
|
||
) { | ||
public static ContentGetDetailsResponseDtoVer4 of(Member member, int memberGhost, Content content, boolean isGhost, boolean isLiked, String time, int likedNumber, int commentNumber) { | ||
return new ContentGetDetailsResponseDtoVer4( | ||
member.getId(), | ||
member.getProfileUrl(), | ||
member.getNickname(), | ||
isGhost, | ||
memberGhost, | ||
isLiked, | ||
time, | ||
likedNumber, | ||
commentNumber, | ||
content.getContentTitle(), | ||
content.getContentText(), | ||
member.isDeleted(), | ||
content.getContentImage(), | ||
member.getMemberFanTeam(), | ||
content.isBlind() | ||
); | ||
} | ||
} |
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