Files
tiku-backend.net/Tiku.Application/Notifications/INotificationProvider.cs
xiong c497a3ca8d
Some checks failed
ci / release-gate (push) Has been cancelled
清理代码
2026-08-03 12:31:39 +08:00

26 lines
685 B
C#

using System.Text.Json;
using Tiku.Domain.Operations;
namespace Tiku.Application.Notifications;
public sealed record InAppNotificationRequest(
Guid TenantId,
Guid UserId,
string NotificationType,
NotificationSeverity Severity,
string Title,
string Message,
Guid? CreatedBy = null,
string? ActionLabel = null,
string? ActionPath = null,
string? SourceType = null,
Guid? SourceId = null,
string? DedupeKey = null,
JsonElement Metadata = default);
public interface INotificationProvider
{
Task<UserNotification> UpsertInAppAsync(
InAppNotificationRequest request,
CancellationToken cancellationToken = default);
}