测试
This commit is contained in:
12
MinimalAPI/Services/IProductService.cs
Normal file
12
MinimalAPI/Services/IProductService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using HardwarePerformance.Models.DTOs;
|
||||
|
||||
namespace HardwarePerformance.Services
|
||||
{
|
||||
public interface IProductService
|
||||
{
|
||||
Task<PagedResultDto<ProductListDto>> GetProductsByCategoryAsync(int categoryId, int page = 1, int pageSize = 20, string sortBy = "CurrentRank", string order = "asc");
|
||||
Task<ProductDto?> GetProductByIdAsync(int id);
|
||||
Task<PagedResultDto<ProductListDto>> SearchProductsAsync(string query, int? categoryId = null, string? manufacturer = null, int? minScore = null, int? maxScore = null, int page = 1, int pageSize = 20);
|
||||
Task<PagedResultDto<ProductListDto>> FilterProductsAsync(int categoryId, string? manufacturer = null, int? minScore = null, int? maxScore = null, int? releaseYear = null, int page = 1, int pageSize = 20, string sortBy = "CurrentRank", string order = "asc");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user