-
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] 광고 주문자 상세정보 조회 * [FEAT] 사업체 팝업스토어 현황 API 구현 * [FEAT] 사업체 팝업스토어 현황 API 구현
- Loading branch information
Showing
26 changed files
with
350 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/oya/kr/popup/controller/dto/response/StatisticsCommunityResponse.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,21 @@ | ||
package com.oya.kr.popup.controller.dto.response; | ||
|
||
import com.oya.kr.popup.mapper.dto.response.StatisticsCommunityMapperResponse; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public class StatisticsCommunityResponse { | ||
|
||
private final int total; | ||
private final int ad; | ||
|
||
public static StatisticsCommunityResponse from(StatisticsCommunityMapperResponse communities) { | ||
return new StatisticsCommunityResponse( | ||
communities.getTotal(), | ||
communities.getAd() | ||
); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/com/oya/kr/popup/controller/dto/response/StatisticsPlanResponse.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,29 @@ | ||
package com.oya.kr.popup.controller.dto.response; | ||
|
||
import com.oya.kr.popup.mapper.dto.response.StatisticsPlanMapperResponse; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public class StatisticsPlanResponse { | ||
|
||
private final int total; | ||
private final int request; | ||
private final int waiting; | ||
private final int approval; | ||
private final int rejection; | ||
private final int withdrawal; | ||
|
||
public static StatisticsPlanResponse from(StatisticsPlanMapperResponse plans) { | ||
return new StatisticsPlanResponse( | ||
plans.getTotal(), | ||
plans.getRequest(), | ||
plans.getWaiting(), | ||
plans.getApproval(), | ||
plans.getRejection(), | ||
plans.getWithdrawal() | ||
); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/oya/kr/popup/controller/dto/response/StatisticsPopupResponse.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,21 @@ | ||
package com.oya.kr.popup.controller.dto.response; | ||
|
||
import com.oya.kr.popup.mapper.dto.response.StatisticsPopupMapperResponse; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public class StatisticsPopupResponse { | ||
|
||
private final int total; | ||
private final int ad; | ||
|
||
public static StatisticsPopupResponse from(StatisticsPopupMapperResponse popups) { | ||
return new StatisticsPopupResponse( | ||
popups.getTotal(), | ||
popups.getAd() | ||
); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/oya/kr/popup/controller/dto/response/StatisticsResponse.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,25 @@ | ||
package com.oya.kr.popup.controller.dto.response; | ||
|
||
import com.oya.kr.popup.mapper.dto.response.StatisticsCommunityMapperResponse; | ||
import com.oya.kr.popup.mapper.dto.response.StatisticsPlanMapperResponse; | ||
import com.oya.kr.popup.mapper.dto.response.StatisticsPopupMapperResponse; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public class StatisticsResponse { | ||
|
||
private final StatisticsPlanResponse plan; | ||
private final StatisticsPopupResponse popup; | ||
private final StatisticsCommunityResponse community; | ||
|
||
public static StatisticsResponse from(StatisticsPlanMapperResponse plans, StatisticsPopupMapperResponse popups, StatisticsCommunityMapperResponse communities) { | ||
return new StatisticsResponse( | ||
StatisticsPlanResponse.from(plans), | ||
StatisticsPopupResponse.from(popups), | ||
StatisticsCommunityResponse.from(communities) | ||
); | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/oya/kr/popup/mapper/dto/response/StatisticsCommunityMapperResponse.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,12 @@ | ||
package com.oya.kr.popup.mapper.dto.response; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public class StatisticsCommunityMapperResponse { | ||
|
||
private final int total; | ||
private final int ad; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/oya/kr/popup/mapper/dto/response/StatisticsPlanMapperResponse.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,16 @@ | ||
package com.oya.kr.popup.mapper.dto.response; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public class StatisticsPlanMapperResponse { | ||
|
||
private final int total; | ||
private final int request; | ||
private final int waiting; | ||
private final int approval; | ||
private final int rejection; | ||
private final int withdrawal; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/oya/kr/popup/mapper/dto/response/StatisticsPopupMapperResponse.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,12 @@ | ||
package com.oya.kr.popup.mapper.dto.response; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public class StatisticsPopupMapperResponse { | ||
|
||
private final int total; | ||
private final int ad; | ||
} |
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.