You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
using Znyc.CloudCar.Model.ViewModels.ReportsCallBack;
|
|
|
|
namespace Znyc.CloudCar.IServices.Collection
|
|
{
|
|
/// <summary>
|
|
/// 收藏服务接口
|
|
/// </summary>
|
|
public interface ICollectionService
|
|
{
|
|
|
|
/// <summary>
|
|
/// 分页查询收藏记录列表
|
|
/// </summary>
|
|
/// <param name="currentPage"></param>
|
|
/// <param name="pageSize"></param>
|
|
/// <returns></returns>
|
|
Task<ResponseOutput> PageAsync(int currentPage, int pageSize);
|
|
|
|
/// <summary>
|
|
/// 添加收藏
|
|
/// </summary>
|
|
/// <param name="equipmentId"></param>
|
|
/// <returns></returns>
|
|
Task<ResponseOutput> AddAsync(long equipmentId);
|
|
|
|
/// <summary>
|
|
/// 取消收藏
|
|
/// </summary>
|
|
/// <param name="equipmentId"></param>
|
|
/// <returns></returns>
|
|
Task<ResponseOutput> CancelAsync(long equipmentId);
|
|
|
|
/// <summary>
|
|
/// 是否收藏
|
|
/// </summary>
|
|
/// <param name="equipmentId"></param>
|
|
/// <returns></returns>
|
|
Task<bool> IsCollection(long equipmentId);
|
|
}
|
|
}
|
|
|