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.
57 lines
1.9 KiB
57 lines
1.9 KiB
using System.Threading.Tasks;
|
|
using Znyc.Admin.Commons.Entitys;
|
|
using Znyc.Admin.Commons.IServices;
|
|
using Znyc.Admin.Commons.Pages;
|
|
using Znyc.Admin.Security.Dtos;
|
|
using Znyc.Admin.Security.Entitys;
|
|
|
|
namespace Znyc.Admin.Security.IServices
|
|
{
|
|
public interface IVehicleService : IService<Vehicle, VehicleOutputDto, long>
|
|
{
|
|
/// <summary>
|
|
/// 根据条件查询数据库,并返回对象集合(用于分页数据显示)
|
|
/// </summary>
|
|
/// <param name="search">查询的条件</param>
|
|
/// <returns>指定对象的集合</returns>
|
|
Task<PageResult<VehicleOutputDto>> FindWithPagerSearchAsync(SearchVehicleModel search);
|
|
|
|
/// <summary>
|
|
/// 新增车辆信息
|
|
/// </summary>
|
|
/// <param name="entity"></param>
|
|
/// <returns></returns>
|
|
Task<CommonResult> InsertAsync(Vehicle entity);
|
|
|
|
/// <summary>
|
|
/// 修改车辆信息
|
|
/// </summary>
|
|
/// <param name="tinfo"></param>
|
|
/// <returns></returns>
|
|
Task<CommonResult> UpdateAsync(Vehicle tinfo);
|
|
|
|
/// <summary>
|
|
/// 修改车辆状态
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <param name="status">状态</param>
|
|
/// <returns></returns>
|
|
Task<CommonResult> UpdateStatusAsync(long id, int status);
|
|
|
|
/// <summary>
|
|
/// 修改车辆是否激活
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <param name="isActivate">状态</param>
|
|
/// <returns></returns>
|
|
Task<CommonResult> UpdateIsActivateAsync(long id, bool isActivate);
|
|
|
|
/// <summary>
|
|
/// 修改车辆是否开启GPS
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <param name="isGps">状态</param>
|
|
/// <returns></returns>
|
|
Task<CommonResult> UpdateIsGpsAsync(long id, bool isGps);
|
|
}
|
|
}
|