✨
This commit is contained in:
35
StopShopping.Services/IProductService.cs
Normal file
35
StopShopping.Services/IProductService.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using StopShopping.Services.Models.Req;
|
||||
using StopShopping.Services.Models.Resp;
|
||||
|
||||
namespace StopShopping.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 商品服务
|
||||
/// </summary>
|
||||
public interface IProductService
|
||||
{
|
||||
/// <summary>
|
||||
/// 分页搜索
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
Task<ApiResponse<PagedResult<Product>>> SearchAsync(ProductSearchParms model);
|
||||
/// <summary>
|
||||
/// 详情
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
ApiResponse<ProductInfo> Detail(ProductIdParams model);
|
||||
/// <summary>
|
||||
/// 新增/修改商品
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
Task<ApiResponse> EditAsync(EditProductParams model);
|
||||
/// <summary>
|
||||
/// 删除商品
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
Task<ApiResponse> DeleteAsync(ProductIdParams model);
|
||||
}
|
||||
Reference in New Issue
Block a user