feat: 套餐管理与配额校验能力

This commit is contained in:
2025-12-03 20:17:55 +08:00
parent ea33e6fefe
commit 19137f3cf7
25 changed files with 996 additions and 4 deletions

View File

@@ -0,0 +1,29 @@
using TakeoutSaaS.Domain.Tenants.Enums;
namespace TakeoutSaaS.Application.App.Tenants.Dto;
/// <summary>
/// 配额校验结果。
/// </summary>
public sealed class QuotaCheckResultDto
{
/// <summary>
/// 配额类型。
/// </summary>
public TenantQuotaType QuotaType { get; init; }
/// <summary>
/// 当前配额上限null 表示无限制。
/// </summary>
public decimal? Limit { get; init; }
/// <summary>
/// 已使用数量。
/// </summary>
public decimal Used { get; init; }
/// <summary>
/// 剩余额度null 表示无限制。
/// </summary>
public decimal? Remaining { get; init; }
}