feat: 套餐使用统计与使用租户接口

This commit is contained in:
2025-12-15 16:00:38 +08:00
parent 9d80f02bc5
commit a201885240
7 changed files with 470 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
namespace TakeoutSaaS.Application.App.Tenants.Dto;
/// <summary>
/// 套餐使用统计 DTO订阅关联数量、使用租户数量
/// </summary>
public sealed class TenantPackageUsageDto
{
/// <summary>
/// 套餐 ID。
/// </summary>
public long TenantPackageId { get; init; }
/// <summary>
/// 当前有效订阅数量(以当前时间为准)。
/// </summary>
public int ActiveSubscriptionCount { get; init; }
/// <summary>
/// 当前使用租户数量(以当前时间为准,按租户去重)。
/// </summary>
public int ActiveTenantCount { get; init; }
/// <summary>
/// 历史总订阅记录数量(不含软删)。
/// </summary>
public int TotalSubscriptionCount { get; init; }
}