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

namespace ERPCore.Services.Interfaces;

public interface IEmploymentTypeService
{
    Task<PagedResponse<EmploymentTypeDto>> ListAsync(PageQuery query, EntityStatus? status, CancellationToken ct = default);
    Task<ETagged<EmploymentTypeDto>?> GetAsync(int employmentTypeId, CancellationToken ct = default);
    Task<ETagged<EmploymentTypeDto>> CreateAsync(CreateEmploymentTypeRequest request, CancellationToken ct = default);
    Task<ETagged<EmploymentTypeDto>> UpdateAsync(int employmentTypeId, UpdateEmploymentTypeRequest request, uint expectedRowVersion, CancellationToken ct = default);
    Task SetStatusAsync(int employmentTypeId, EntityStatus status, CancellationToken ct = default);
}
