-
Notifications
You must be signed in to change notification settings - Fork 3
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 Kernel360/99-fix-filter
feat: 동호회 전체 조회, 필터 수정
- Loading branch information
Showing
17 changed files
with
272 additions
and
99 deletions.
There are no files selected for viewing
36 changes: 0 additions & 36 deletions
36
badminton-api/src/main/java/org/badminton/api/HomeController.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
27 changes: 27 additions & 0 deletions
27
badminton-api/src/main/java/org/badminton/api/club/model/dto/ClubsReadResponse.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,27 @@ | ||
package org.badminton.api.club.model.dto; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.Map; | ||
|
||
import org.badminton.domain.club.entity.ClubEntity; | ||
import org.badminton.domain.common.enums.MemberTier; | ||
|
||
public record ClubsReadResponse( | ||
String clubName, | ||
String clubDescription, | ||
String clubImage, | ||
LocalDateTime createdAt, | ||
LocalDateTime modifiedAt, | ||
Map<MemberTier, Long> tierCounts | ||
) { | ||
|
||
public static ClubsReadResponse clubEntityToClubsReadResponse(ClubEntity clubEntity, | ||
Map<MemberTier, Long> tierCounts) { | ||
return new ClubsReadResponse(clubEntity.getClubName(), clubEntity.getClubDescription(), | ||
clubEntity.getClubImage(), | ||
clubEntity.getCreatedAt(), | ||
clubEntity.getModifiedAt(), | ||
tierCounts | ||
); | ||
} | ||
} |
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.