using ERPCore.Common.Http;
using ERPCore.Domain.Enums;
using ERPCore.Dtos.Common;
using ERPCore.Dtos.Hrm;

namespace ERPCore.Services.Interfaces;

public interface ILeaveTypeService
{
    Task<PagedResponse<LeaveTypeDto>> ListAsync(PageQuery query, EntityStatus? status, CancellationToken ct = default);
    Task<ETagged<LeaveTypeDto>?> GetAsync(int leaveTypeId, CancellationToken ct = default);
    Task<ETagged<LeaveTypeDto>> CreateAsync(CreateLeaveTypeRequest request, CancellationToken ct = default);
    Task<ETagged<LeaveTypeDto>> UpdateAsync(int leaveTypeId, UpdateLeaveTypeRequest request, uint expectedRowVersion, CancellationToken ct = default);
    Task SetStatusAsync(int leaveTypeId, EntityStatus status, CancellationToken ct = default);
}
