feat: add filtering by ServiceName and Key in email templates query and UI

This commit is contained in:
2026-05-17 11:43:25 +03:00
parent 3381fcc2f8
commit 07f536938f
7 changed files with 56 additions and 10 deletions
@@ -4,10 +4,10 @@ namespace HrynCo.NotificationService.DAL.Abstract.Repositories;
public interface IEmailTemplateRepository
{
Task<IReadOnlyList<EmailTemplate>> GetAllAsync(CancellationToken ct = default);
Task<IReadOnlyList<EmailTemplate>> GetAllAsync(string? serviceName = null, string? key = null, CancellationToken ct = default);
Task<IReadOnlyList<EmailTemplate>> GetByServiceAsync(string serviceName, CancellationToken ct = default);
Task<EmailTemplate?> GetAsync(string serviceName, string key, string languageCode, CancellationToken ct = default);
Task AddAsync(EmailTemplate template, CancellationToken ct = default);
Task UpdateAsync(EmailTemplate template, CancellationToken ct = default);
Task DeleteAsync(EmailTemplate template, CancellationToken ct = default);
}
}