17 lines
860 B
C#
17 lines
860 B
C#
using YY.Admin.Core.Entity;
|
|
|
|
namespace YY.Admin.Core.Services;
|
|
|
|
public record VehiclePageResult(List<MesXslVehicle> Records, long Total, int Current, int Size);
|
|
|
|
public interface IVehicleService
|
|
{
|
|
Task<VehiclePageResult> PageAsync(int pageNo, int pageSize, string? plateNumber = null, string? vehicleBelong = null, string? status = null, CancellationToken ct = default);
|
|
Task<MesXslVehicle?> GetByIdAsync(string id, CancellationToken ct = default);
|
|
Task<bool> AddAsync(MesXslVehicle vehicle, CancellationToken ct = default);
|
|
Task<bool> EditAsync(MesXslVehicle vehicle, CancellationToken ct = default);
|
|
Task<bool> DeleteAsync(string id, CancellationToken ct = default);
|
|
Task<bool> DeleteBatchAsync(string ids, CancellationToken ct = default);
|
|
Task<bool> UpdateStatusAsync(string id, string status, CancellationToken ct = default);
|
|
}
|