Files
TakeoutSaaS.TenantApi/src/Application/TakeoutSaaS.Application/App/Tenants/Dto/QuotaCheckResultDto.cs

30 lines
671 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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; }
}