feat: 租户账单公告通知接口

This commit is contained in:
2025-12-03 21:08:28 +08:00
parent 075906266a
commit 9fe7d9606d
47 changed files with 1522 additions and 4 deletions

View File

@@ -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; }
}