15 lines
524 B
C#
15 lines
524 B
C#
using Fengling.RiskControl.Domain.Aggregates.RiskAlerts;
|
|
|
|
namespace Fengling.RiskControl.Domain.Repositories;
|
|
|
|
public interface IRiskAlertRepository
|
|
{
|
|
Task<RiskAlert?> GetByIdAsync(long id);
|
|
Task<IEnumerable<RiskAlert>> GetByMemberIdAsync(long memberId);
|
|
Task<IEnumerable<RiskAlert>> GetPendingAlertsAsync();
|
|
Task<IEnumerable<RiskAlert>> GetAlertsByPriorityAsync(RiskAlertPriority priority);
|
|
Task AddAsync(RiskAlert alert);
|
|
Task UpdateAsync(RiskAlert alert);
|
|
Task DeleteAsync(RiskAlert alert);
|
|
}
|