36 lines
951 B
C#
36 lines
951 B
C#
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);
|
|
}
|