feat: 租户账单公告通知接口
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using TakeoutSaaS.Domain.Tenants.Enums;
|
||||
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Tenants.Dto;
|
||||
|
||||
/// <summary>
|
||||
/// 租户通知 DTO。
|
||||
/// </summary>
|
||||
public sealed class TenantNotificationDto
|
||||
{
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long Id { get; init; }
|
||||
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long TenantId { get; init; }
|
||||
|
||||
public string Title { get; init; } = string.Empty;
|
||||
|
||||
public string Message { get; init; } = string.Empty;
|
||||
|
||||
public TenantNotificationChannel Channel { get; init; }
|
||||
|
||||
public TenantNotificationSeverity Severity { get; init; }
|
||||
|
||||
public DateTime SentAt { get; init; }
|
||||
|
||||
public DateTime? ReadAt { get; init; }
|
||||
|
||||
public string? MetadataJson { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user