-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: 공연 예매/지원자 통계 조회 API #91
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
44 changes: 44 additions & 0 deletions
44
src/main/java/kahlua/KahluaProject/dto/apply/response/ApplyStatisticsResponse.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,44 @@ | ||
package kahlua.KahluaProject.dto.apply.response; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public record ApplyStatisticsResponse( | ||
@Schema(description = "총 지원자 수", example = "100") | ||
Long totalApplyCount, | ||
|
||
@Schema(description = "보컬 지원자 수", example = "20") | ||
Long vocalCount, | ||
|
||
@Schema(description = "보컬 지원자 비율", example = "20") | ||
Long vocalPercent, | ||
|
||
@Schema(description = "드럼 지원자 수", example = "20") | ||
Long drumCount, | ||
|
||
@Schema(description = "드럼 지원자 비율", example = "20") | ||
Long drumPercent, | ||
|
||
@Schema(description = "기타 지원자 수", example = "20") | ||
Long guitarCount, | ||
|
||
@Schema(description = "기타 지원자 비율", example = "20") | ||
Long guitarPercent, | ||
|
||
@Schema(description = "베이스 지원자 수", example = "20") | ||
Long bassCount, | ||
|
||
@Schema(description = "베이스 지원자 비율", example = "20") | ||
Long bassPercent, | ||
|
||
@Schema(description = "신디사이저 지원자 수", example = "20") | ||
Long synthesizerCount, | ||
|
||
@Schema(description = "신디사이저 지원자 비율", example = "20") | ||
Long synthesizerPercent | ||
) { | ||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/kahlua/KahluaProject/dto/ticket/response/TicketStatisticsResponse.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,46 @@ | ||
package kahlua.KahluaProject.dto.ticket.response; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
|
||
@Builder | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public record TicketStatisticsResponse( | ||
@Schema(description = "티켓 상태별 수") | ||
TicketStatusResponse ticketStatusCount, | ||
@Schema(description = "그래프 정보") | ||
GraphResponse graph, | ||
@Schema(description = "총 수입", example = "1000000") | ||
Long totalIncome | ||
) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 하나의 클래스로 관련된 DTO를 관리하니까 프로젝트 구조가 간결해지는 것 같습니다 |
||
@Builder | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public record TicketStatusResponse( | ||
@Schema(description = "총 티켓 수", example = "100") | ||
Long totalTicketCount, | ||
@Schema(description = "결제 대기 수", example = "20") | ||
Long waitCount, | ||
@Schema(description = "결제 완료 수", example = "20") | ||
Long finishPaymentCount, | ||
@Schema(description = "환불 요청 수", example = "20") | ||
Long cancelRequestCount | ||
) { | ||
} | ||
@Builder | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public record GraphResponse( | ||
@Schema(description = "일반 티켓 수", example = "80") | ||
Long generalCount, | ||
@Schema(description = "일반 티켓 비율", example = "80") | ||
Long generalPercent, | ||
@Schema(description = "신입생 티켓 수", example = "20") | ||
Long freshmanCount, | ||
@Schema(description = "신입생 티켓 비율", example = "20") | ||
Long freshmanPercent | ||
) { | ||
} | ||
} |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 GET 메서드 요청에 대해 permitAll() 설정을 적용하신 이유가 있을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
공연정보/지원정보 조회에 대해서만 permitAll 설정을 해둔다는게 엔드포인트를 잘못작성했네요 수정하겠습니다!