12345678910111213141516171819202122232425262728293031323334 |
- using System.Threading.Tasks;
- using Znaf.Application.Communication;
- using Znaf.Domain.Models;
- using Znaf.Domain.Models.Queries;
- namespace Znaf.Application.Interfaces
- {
- /// <summary>
- /// 车辆服务接口
- /// </summary>
- public interface IVehicleAppService
- {
- /// <summary>
- /// 分页获取车辆信息
- /// </summary>
- Task<QueryResult<Vehicle>> ListVehicles(VehicleQuery query);
- /// <summary>
- /// 行增车辆信息
- /// </summary>
- Task<VehicleResponse> AddAsync(Vehicle vehicle);
- /// <summary>
- /// 更新车辆信息
- /// </summary>
- Task<VehicleResponse> UpdateAsync(string guid, Vehicle vehicle);
- /// <summary>
- /// 删除车辆信息
- /// </summary>
- Task<VehicleResponse> DeleteAsync(string guid);
- }
- }
|