-
Notifications
You must be signed in to change notification settings - Fork 4
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 #91 from yumzen/main
Feat: 공연 예매/지원자 통계 조회 API
- Loading branch information
Showing
9 changed files
with
250 additions
and
14 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
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 | ||
) { | ||
@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.