IVehicleAppService.cs 859 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Threading.Tasks;
  2. using Znaf.Application.Communication;
  3. using Znaf.Domain.Models;
  4. using Znaf.Domain.Models.Queries;
  5. namespace Znaf.Application.Interfaces
  6. {
  7. /// <summary>
  8. /// 车辆服务接口
  9. /// </summary>
  10. public interface IVehicleAppService
  11. {
  12. /// <summary>
  13. /// 分页获取车辆信息
  14. /// </summary>
  15. Task<QueryResult<Vehicle>> ListVehicles(VehicleQuery query);
  16. /// <summary>
  17. /// 行增车辆信息
  18. /// </summary>
  19. Task<VehicleResponse> AddAsync(Vehicle vehicle);
  20. /// <summary>
  21. /// 更新车辆信息
  22. /// </summary>
  23. Task<VehicleResponse> UpdateAsync(string guid, Vehicle vehicle);
  24. /// <summary>
  25. /// 删除车辆信息
  26. /// </summary>
  27. Task<VehicleResponse> DeleteAsync(string guid);
  28. }
  29. }