Files
hrynco-notification-service/HrynCo.NotificationService.DAL.Abstract/Repositories/INotificationServiceRepository.cs
T
agrynco 8e81572386 feat(notification): add admin rest management and deletion
Add revision-safe service and template APIs, channel mapping, and validated admin controls.

Ref: IT-1601
2026-10-17 22:51:01 +03:00

14 lines
776 B
C#

using HrynCo.NotificationService.DAL.Abstract.Templates;
namespace HrynCo.NotificationService.DAL.Abstract.Repositories;
public interface INotificationServiceRepository
{
Task<IReadOnlyList<NotificationServiceInfo>> GetAllAsync(CancellationToken ct = default);
Task<NotificationServiceInfo?> GetAsync(Guid id, CancellationToken ct = default);
Task<NotificationServiceInfo?> GetByNameAsync(string name, CancellationToken ct = default);
Task<bool> DeleteAsync(Guid id, Guid revision, CancellationToken ct = default);
Task SaveAsync(NotificationServiceInfo service, bool isNew, CancellationToken ct = default);
Task RemoveLanguageAsync(Guid serviceId, Guid languageId, int expectedVersionCount, Guid expectedRevision, CancellationToken ct = default);
}