Files
Heimdall/src/Heimdall.Application/Services/IPersonService.cs
T

17 lines
906 B
C#

using Heimdall.Application.Common;
using Heimdall.Application.DTOs;
namespace Heimdall.Application.Services;
public interface IPersonService
{
Task<ServiceResult<PersonResponse>> CreateAsync(CreatePersonRequest request, CancellationToken ct);
Task<ServiceResult<PersonResponse>> UpdateAsync(Guid id, UpdatePersonRequest request, CancellationToken ct);
Task<ServiceResult<PersonResponse>> GetByIdAsync(Guid id, CancellationToken ct);
Task<ServiceResult<List<PersonResponse>>> GetAllAsync(string? category, CancellationToken ct);
Task<ServiceResult> DeleteAsync(Guid id, CancellationToken ct);
Task<ServiceResult<KnownFaceResponse>> RegisterFaceAsync(RegisterFaceRequest request, CancellationToken ct);
Task<ServiceResult<List<KnownFaceResponse>>> GetFacesAsync(Guid personId, CancellationToken ct);
Task<ServiceResult> DeleteFaceAsync(Guid faceId, CancellationToken ct);
}