This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6864024
commit 326a87e
Showing
6 changed files
with
33 additions
and
40 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/RookieShop.ApiService/Endpoints/Reports/BestSellerProducts.Request.cs
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace RookieShop.ApiService.Endpoints.Reports; | ||
|
||
public sealed record BestSellerProductsRequest(int Top, DateTime? From, DateTime? To); | ||
public sealed record BestSellerProductsRequest(int Top); |
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
18 changes: 9 additions & 9 deletions
18
src/RookieShop.Application/Reports/DTOs/BestSellerProductsDto.cs
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
using RookieShop.Domain.Entities.ProductAggregator.ValueObjects; | ||
namespace RookieShop.Application.Reports.DTOs; | ||
|
||
namespace RookieShop.Application.Reports.DTOs; | ||
|
||
public sealed record BestSellerProductsDto( | ||
Guid ProductId, | ||
string ProductName, | ||
int TotalSoldQuantity, | ||
ProductPrice Price, | ||
string? ImageUrl); | ||
public sealed class BestSellerProductsDto | ||
{ | ||
public Guid ProductId { get; set; } | ||
public string? ProductName { get; set; } | ||
public int TotalSoldQuantity { get; set; } | ||
public string Price { get; set; } = string.Empty; | ||
public string? ImageUrl { get; set; } | ||
} |
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