-
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 #104 from team-Ollie/feature/4-getMyChallengesAdmin
[feature/4-getMyChallengesAdmin] 관리자 챌린지 현황 조회 API
- Loading branch information
Showing
3 changed files
with
34 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
20 changes: 20 additions & 0 deletions
20
src/main/java/ollie/wecare/challenge/dto/GetChallengeAdminRes.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,20 @@ | ||
package ollie.wecare.challenge.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import ollie.wecare.user.entity.User; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor | ||
public class GetChallengeAdminRes { | ||
String identifier; | ||
Integer attendanceRate; | ||
|
||
public static GetChallengeAdminRes fromParticipant(User user, Integer attendanceRate) { | ||
return GetChallengeAdminRes.builder().identifier(user.getIdentifier()).attendanceRate(attendanceRate).build(); | ||
} | ||
} |
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