-
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.
* feature: user statistics in admin dashboard * feature: product order count in admin dashboard * feature: clothing sales count in admin dashboard * feature: today stats in admin dashboard * fix: no quality rate for rejected products (admin)
- Loading branch information
Showing
17 changed files
with
162 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
13 changes: 13 additions & 0 deletions
13
...ava/com/example/repick/domain/clothingSales/dto/GetClothingSalesAndProductOrderCount.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,13 @@ | ||
package com.example.repick.domain.clothingSales.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record GetClothingSalesAndProductOrderCount( | ||
@Schema(name = "์๊ฑฐ ์ ์ฒญ ์") int collectionRequestCount, | ||
@Schema(name = "๊ฒฐ์ ์๋ฃ ์") int paymentCompleteCount, | ||
@Schema(name = "๋ฐํ ์์ฒญ ์") int returnRequestCount | ||
) { | ||
public static GetClothingSalesAndProductOrderCount of(int collectionRequestCount, int paymentCompleteCount, int returnRequestCount) { | ||
return new GetClothingSalesAndProductOrderCount(collectionRequestCount, paymentCompleteCount, returnRequestCount); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/example/repick/domain/clothingSales/dto/GetClothingSalesCount.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.example.repick.domain.clothingSales.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record GetClothingSalesCount( | ||
@Schema(name = "์๊ฑฐ ์ ์ฒญ ์") long collectionRequestCount, | ||
@Schema(name = "์ํํ ์งํ ์ค ์") long productionProgressCount, | ||
@Schema(name = "์ํํ ์๋ฃ ์") long productionCompleteCount, | ||
@Schema(name = "ํ๋งค์ค ์") long sellingCount, | ||
@Schema(name = "์ ์ฐ ์์ฒญ ์") long settlementRequestCount | ||
|
||
) { | ||
public static GetClothingSalesCount of(long collectionRequestCount, long productionProgressCount, long productionCompleteCount, long sellingCount, long settlementRequestCount) { | ||
return new GetClothingSalesCount(collectionRequestCount, productionProgressCount, productionCompleteCount, sellingCount, settlementRequestCount); | ||
} | ||
} |
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
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
15 changes: 15 additions & 0 deletions
15
src/main/java/com/example/repick/domain/product/dto/productOrder/GetProductOrderCount.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,15 @@ | ||
package com.example.repick.domain.product.dto.productOrder; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record GetProductOrderCount( | ||
@Schema(name = "๊ตฌ๋งค ์์ฒญ ์") long paymentCompletedCount, | ||
@Schema(name = "๋ฐ์ก ์ค ์") long shippingCount, | ||
@Schema(name = "๊ตฌ๋งค ํ์ ๋๊ธฐ ์") long confirmWaitCount, | ||
@Schema(name = "๊ตฌ๋งค ํ์ ์") long confirmedCount, | ||
@Schema(name = "๋ฐํ ์์ฒญ ์") long returnRequestCount | ||
) { | ||
public static GetProductOrderCount of(long paymentCompletedCount, long shippingCount, long confirmWaitCount, long confirmedCount, long refundRequestCount) { | ||
return new GetProductOrderCount(paymentCompletedCount, shippingCount, confirmWaitCount, confirmedCount, refundRequestCount); | ||
} | ||
} |
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
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/example/repick/domain/user/dto/GetUserStatistics.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.example.repick.domain.user.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record GetUserStatistics( | ||
@Schema(name = "์ด ์ ์ ์") long totalUserCount, | ||
@Schema(name = "์ ๊ท ๊ฐ์ ์ ์ ์") long newUserCount | ||
){ | ||
public static GetUserStatistics of(long totalUserCount, long newUserCount) { | ||
return new GetUserStatistics(totalUserCount, newUserCount); | ||
} | ||
} |
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