-
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 #37 from K-Hackathon-Fledge/35-feature-challenge-d…
…etail 35 feature challenge detail
- Loading branch information
Showing
27 changed files
with
386 additions
and
44 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
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
...ge/dto/ChallengeParticipationRequest.java → ...equest/ChallengeParticipationRequest.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
2 changes: 1 addition & 1 deletion
2
.../challenge/dto/ChallengeProofRequest.java → ...ge/dto/request/ChallengeProofRequest.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
23 changes: 23 additions & 0 deletions
23
src/main/java/com/fledge/fledgeserver/challenge/dto/response/ChallengeDetailResponse.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,23 @@ | ||
package com.fledge.fledgeserver.challenge.dto.response; | ||
|
||
import com.fledge.fledgeserver.challenge.Enum.ChallengeCategory; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
@Schema(description = "챌린지 상세 정보 응답 DTO") | ||
public class ChallengeDetailResponse extends ChallengeResponse { | ||
|
||
@Schema(description = "사용자 참여 여부", example = "true") | ||
private boolean isParticipating; | ||
|
||
public ChallengeDetailResponse(String title, int likeCount, List<ChallengeCategory> categories, String type, | ||
String description, double successRate, int successCount, int participantCount, boolean isParticipating) { | ||
super(title, likeCount, categories, type, description, successRate, successCount, participantCount, null, null, null); | ||
this.isParticipating = isParticipating; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...e/dto/ChallengeParticipationResponse.java → ...ponse/ChallengeParticipationResponse.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
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
35 changes: 35 additions & 0 deletions
35
...com/fledge/fledgeserver/challenge/dto/response/ChallengerParticipationPersonResponse.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,35 @@ | ||
package com.fledge.fledgeserver.challenge.dto.response; | ||
|
||
import com.fledge.fledgeserver.common.aop.ApplyPresignedUrl; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
@ApplyPresignedUrl | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Schema(description = "챌린지 참여자 정보 응답 DTO") | ||
public class ChallengerParticipationPersonResponse { | ||
|
||
@Schema(description = "참여자 닉네임", example = "user123") | ||
private String nickname; | ||
|
||
@ApplyPresignedUrl | ||
@Schema(description = "참여자 프로필 이미지 URL", example = "https://example.com/profile.jpg") | ||
private String profileImageUrl; | ||
|
||
@Schema(description = "성공한 챌린지 수", example = "5") | ||
private long successCount; | ||
|
||
@Schema(description = "전체 참여 챌린지 수", example = "10") | ||
private long totalParticipation; | ||
|
||
@Schema(description = "자주 참여하는 챌린지 카테고리 목록", example = "[\"SELF_DEVELOPMENT\", \"FITNESS\"]") | ||
private List<String> topCategories; | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/fledge/fledgeserver/challenge/dto/response/MyChallengeProofResponse.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,26 @@ | ||
package com.fledge.fledgeserver.challenge.dto.response; | ||
|
||
import com.fledge.fledgeserver.common.aop.ApplyPresignedUrl; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@ApplyPresignedUrl | ||
@Schema(description = "본인 챌린지 인증 내역 응답 DTO") | ||
public class MyChallengeProofResponse { | ||
|
||
@Schema(description = "필요한 인증 총 횟수", example = "7") | ||
private int totalProofs; | ||
|
||
@ApplyPresignedUrl | ||
@Schema(description = "현재 인증 내역 리스트") | ||
private List<ProofDetailResponse> proofDetailResponses; | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/fledge/fledgeserver/challenge/dto/response/ProofDetailResponse.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,28 @@ | ||
package com.fledge.fledgeserver.challenge.dto.response; | ||
|
||
import com.fledge.fledgeserver.common.aop.ApplyPresignedUrl; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@ApplyPresignedUrl | ||
@Schema(description = "인증 내역 상세 정보 DTO") | ||
public class ProofDetailResponse { | ||
|
||
@Schema(description = "인증 상태", example = "true") | ||
private boolean status; | ||
|
||
@ApplyPresignedUrl | ||
@Schema(description = "인증 이미지 URL", example = "https://example.com/proof.jpg") | ||
private String proofImageUrl; | ||
|
||
@Schema(description = "인증 설명", example = "하루 운동 인증합니다!") | ||
private String description; | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...challenge/dto/TopParticipantResponse.java → .../dto/response/TopParticipantResponse.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
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.