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,20 @@
using MediatR;
using TakeoutSaaS.Application.App.Tenants.Dto;
using TakeoutSaaS.Domain.Tenants.Enums;
namespace TakeoutSaaS.Application.App.Tenants.Commands;
/// <summary>
/// 创建租户公告命令。
/// </summary>
public sealed record CreateTenantAnnouncementCommand : IRequest<TenantAnnouncementDto>
{
public long TenantId { get; init; }
public string Title { get; init; } = string.Empty;
public string Content { get; init; } = string.Empty;
public TenantAnnouncementType AnnouncementType { get; init; } = TenantAnnouncementType.System;
public int Priority { get; init; } = 0;
public DateTime EffectiveFrom { get; init; } = DateTime.UtcNow;
public DateTime? EffectiveTo { get; init; }
public bool IsActive { get; init; } = true;
}