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

namespace ERPCore.Services.Interfaces;

public interface IWorkShiftService
{
    Task<PagedResponse<WorkShiftDto>> ListAsync(PageQuery query, EntityStatus? status, CancellationToken ct = default);
    Task<ETagged<WorkShiftDto>?> GetAsync(int workShiftId, CancellationToken ct = default);
    Task<ETagged<WorkShiftDto>> CreateAsync(CreateWorkShiftRequest request, CancellationToken ct = default);
    Task<ETagged<WorkShiftDto>> UpdateAsync(int workShiftId, UpdateWorkShiftRequest request, uint expectedRowVersion, CancellationToken ct = default);
    Task SetStatusAsync(int workShiftId, EntityStatus status, CancellationToken ct = default);
}
