✨
This commit is contained in:
34
StopShopping.Services/ICategoryService.cs
Normal file
34
StopShopping.Services/ICategoryService.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using StopShopping.Services.Models.Req;
|
||||
using StopShopping.Services.Models.Resp;
|
||||
|
||||
namespace StopShopping.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 商品分类服务
|
||||
/// </summary>
|
||||
public interface ICategoryService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取分类树
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
ApiResponse<List<Category>> GetCategoriesTree();
|
||||
/// <summary>
|
||||
/// 新增/修改分类
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
Task<ApiResponse<Category>> EditCategoryAsync(EditCategoryParams model);
|
||||
/// <summary>
|
||||
/// 调整层级内顺序
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
Task<ApiResponse> ResortCategoryAsync(ResortCategoryParams model);
|
||||
/// <summary>
|
||||
/// 删除分类
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
Task<ApiResponse> DeleteCategoryAsync(CategoryIdParams model);
|
||||
}
|
||||
Reference in New Issue
Block a user