feat: 套餐使用统计与使用租户接口
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user