|
| 1 | +package DiffLens.back_end.domain.library.dto; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 4 | +import lombok.AllArgsConstructor; |
| 5 | +import lombok.Builder; |
| 6 | +import lombok.Getter; |
| 7 | +import lombok.NoArgsConstructor; |
| 8 | + |
| 9 | +import java.util.List; |
| 10 | +import java.util.Map; |
| 11 | + |
| 12 | +public class LibraryCompareResponseDTO { |
| 13 | + |
| 14 | + @Getter |
| 15 | + @Builder |
| 16 | + @NoArgsConstructor |
| 17 | + @AllArgsConstructor |
| 18 | + public static class CompareResult { |
| 19 | + |
| 20 | + @JsonProperty("group1") |
| 21 | + private GroupInfo group1; |
| 22 | + |
| 23 | + @JsonProperty("group2") |
| 24 | + private GroupInfo group2; |
| 25 | + |
| 26 | + @JsonProperty("keyCharacteristics") |
| 27 | + private List<KeyCharacteristic> keyCharacteristics; |
| 28 | + |
| 29 | + @JsonProperty("comparisonCharts") |
| 30 | + private List<ComparisonChart> comparisonCharts; |
| 31 | + |
| 32 | + @JsonProperty("basicComparison") |
| 33 | + private List<BasicComparison> basicComparison; |
| 34 | + } |
| 35 | + |
| 36 | + @Getter |
| 37 | + @Builder |
| 38 | + @NoArgsConstructor |
| 39 | + @AllArgsConstructor |
| 40 | + public static class GroupInfo { |
| 41 | + |
| 42 | + @JsonProperty("libraryId") |
| 43 | + private Long libraryId; |
| 44 | + |
| 45 | + @JsonProperty("libraryName") |
| 46 | + private String libraryName; |
| 47 | + |
| 48 | + @JsonProperty("totalCount") |
| 49 | + private Integer totalCount; |
| 50 | + |
| 51 | + @JsonProperty("color") |
| 52 | + private String color; |
| 53 | + } |
| 54 | + |
| 55 | + @Getter |
| 56 | + @Builder |
| 57 | + @NoArgsConstructor |
| 58 | + @AllArgsConstructor |
| 59 | + public static class KeyCharacteristic { |
| 60 | + |
| 61 | + @JsonProperty("characteristic") |
| 62 | + private String characteristic; |
| 63 | + |
| 64 | + @JsonProperty("description") |
| 65 | + private String description; |
| 66 | + |
| 67 | + @JsonProperty("group1Percentage") |
| 68 | + private Integer group1Percentage; |
| 69 | + |
| 70 | + @JsonProperty("group2Percentage") |
| 71 | + private Integer group2Percentage; |
| 72 | + |
| 73 | + @JsonProperty("difference") |
| 74 | + private Integer difference; |
| 75 | + } |
| 76 | + |
| 77 | + @Getter |
| 78 | + @Builder |
| 79 | + @NoArgsConstructor |
| 80 | + @AllArgsConstructor |
| 81 | + public static class ComparisonChart { |
| 82 | + |
| 83 | + @JsonProperty("chartType") |
| 84 | + private String chartType; |
| 85 | + |
| 86 | + @JsonProperty("title") |
| 87 | + private String title; |
| 88 | + |
| 89 | + @JsonProperty("data") |
| 90 | + private Map<String, Object> data; |
| 91 | + |
| 92 | + @JsonProperty("options") |
| 93 | + private Map<String, Object> options; |
| 94 | + } |
| 95 | + |
| 96 | + @Getter |
| 97 | + @Builder |
| 98 | + @NoArgsConstructor |
| 99 | + @AllArgsConstructor |
| 100 | + public static class BasicComparison { |
| 101 | + |
| 102 | + @JsonProperty("metric") |
| 103 | + private String metric; |
| 104 | + |
| 105 | + @JsonProperty("group1Value") |
| 106 | + private String group1Value; |
| 107 | + |
| 108 | + @JsonProperty("group2Value") |
| 109 | + private String group2Value; |
| 110 | + } |
| 111 | +} |
0 commit comments