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.
 
 

116 lines
3.6 KiB

using Znyc.CloudCar.Model.Dtos.Equipment;
using Znyc.CloudCar.Model.ViewModels.ReportsCallBack;
namespace Znyc.CloudCar.IServices.Equipment
{
/// <summary>
/// 设备信息服务
/// </summary>
public interface IEquipmentService
{
/// <summary>
/// 新增设备信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
Task<ResponseOutput> AddAsync(EquipmentAddInput input);
/// <summary>
/// 编辑设备信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
Task<ResponseOutput> UpdateAsync(EquipmentUpdateInput input);
/// <summary>
/// 根据Id获取设备信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<ResponseOutput> GetAsync(long id);
/// <summary>
/// 分页查询设备列表
/// </summary>
/// <param name="key"></param>
/// <param name="categoryId"></param>
/// <param name="brandId"></param>
/// <param name="jobId"></param>
/// <param name="currentPage"></param>
/// <param name="pageSize"></param>
/// <returns></returns>
Task<ResponseOutput> PageAsync(string? key, long categoryId,
long brandId, long yearId, int currentPage, int pageSize);
/// <summary>
/// 刷新设备信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<ResponseOutput> RefreshAsync(long id);
/// <summary>
/// 置顶设备信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<ResponseOutput> TopAsync(long id);
/// <summary>
/// 取消置顶设备信息
/// </summary>
/// <returns></returns>
Task<ResponseOutput> CancelTopAsync();
/// <summary>
/// 更改设备信息状态
/// </summary>
/// <param name="id"></param>
/// <param name="state">招聘状态</param>
/// <returns></returns>
Task<ResponseOutput> UpdateStateAsync(long id, int state);
/// <summary>
/// 是否公开设备信息
/// </summary>
/// <param name="id"></param>
/// <param name="isPublic"></param>
/// <returns></returns>
Task<ResponseOutput> IsPublicAsync(long id, bool isPublic);
/// <summary>
/// 获取手机号码
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<ResponseOutput> GetPhoneAsync(long id);
/// <summary>
/// 同步浏览量
/// </summary>
/// <returns></returns>
Task<ResponseOutput> PageViewAsync();
/// <summary>
/// 我的设备信息
/// </summary>
/// <param name="state"></param>
/// <param name="currentPage"></param>
/// <param name="pageSize"></param>
/// <returns></returns>
Task<ResponseOutput> MyEquipmentPageAsync(
int state, int currentPage, int pageSize);
/// <summary>
/// 根据UserId查询设备信息
/// </summary>
/// <param name="userId"></param>
/// <param name="currentPage"></param>
/// <param name="pageSize"></param>
/// <returns></returns>
Task<ResponseOutput> GetEquipmentByUserIdAsync(long userId, int currentPage, int pageSize);
Task<ResponseOutput> GetLastEquipmentAsync();
}
}