-
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.
* feat: 스페이스 개수 조회 API 작성 * feat: 회고 개수 조회 API 작성 * feat: 특정 스페이스 내 회고 개수 API 작성 * feat: 특정 기간 내에 진행된 회고 개수 스페이스 별로 보는 API * fix: 파일 삭제
- Loading branch information
Showing
10 changed files
with
249 additions
and
37 deletions.
There are no files selected for viewing
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
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: 9 additions & 0 deletions
9
.../src/main/java/org/layer/domain/admin/controller/dto/AdminRetrospectCountGetResponse.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,9 @@ | ||
package org.layer.domain.admin.controller.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(name = "AdminSpaceCountGetResponse", description = "우리 팀이 만든 스페이스에서 진행된 회고를 제외하고 기간 내에 시작된 회고 수를 리턴합니다.") | ||
public record AdminRetrospectCountGetResponse( | ||
@Schema(description = "기간 내에 만들어진 회고 개수", example = "20") | ||
Long retrospectCount) { | ||
} |
9 changes: 9 additions & 0 deletions
9
...r-api/src/main/java/org/layer/domain/admin/controller/dto/AdminSpaceCountGetResponse.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,9 @@ | ||
package org.layer.domain.admin.controller.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(name = "AdminSpaceCountGetResponse", description = "우리 팀이 만든 스페이스를 제외하고 기간 내에 만들어진 스페이스 개수를 리턴합니다.") | ||
public record AdminSpaceCountGetResponse( | ||
@Schema(description = "기간 내에 만들어진 스페이스 개수", example = "11") | ||
Long spaceCount) { | ||
} |
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
42 changes: 42 additions & 0 deletions
42
...ain/java/org/layer/domain/retrospect/dto/AdminRetrospectCountGroupBySpaceGetResponse.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,42 @@ | ||
package org.layer.domain.retrospect.dto; | ||
|
||
import lombok.*; | ||
import org.layer.domain.member.entity.Member; | ||
import org.layer.domain.space.entity.Space; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Builder | ||
@Getter | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class AdminRetrospectCountGroupBySpaceGetResponse { | ||
private Long spaceId; | ||
private String spaceName; | ||
private LocalDateTime spaceCreatedAt; | ||
private Long leaderId; | ||
private String leaderEmail; | ||
private String leaderName; | ||
private Long retrospectCount; | ||
public AdminRetrospectCountGroupBySpaceGetResponse of(Space space, Member leader, Long retrospectCount) { | ||
return AdminRetrospectCountGroupBySpaceGetResponse.builder() | ||
.spaceId(space.getId()) | ||
.spaceName(space.getName()) | ||
.leaderId(leader.getId()) | ||
.leaderEmail(leader.getEmail()) | ||
.spaceCreatedAt(space.getCreatedAt()) | ||
.leaderName(leader.getName()) | ||
.retrospectCount(retrospectCount) | ||
.build(); | ||
} | ||
|
||
public AdminRetrospectCountGroupBySpaceGetResponse(Space space, Member member, Long retrospectCount) { | ||
this.spaceId = space.getId(); | ||
this.spaceName = space.getName(); | ||
this.spaceCreatedAt = space.getCreatedAt(); | ||
this.leaderId = member.getId(); | ||
this.leaderName = member.getName(); | ||
this.leaderEmail = member.getEmail(); | ||
this.retrospectCount = retrospectCount; | ||
} | ||
} |
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