App:新增 operation_logs/quota_packages/tenant_payments/tenant_quota_package_purchases 表 Identity:修正 Avatar 字段类型(varchar(256)->text),保持现有数据不变
52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
using MediatR;
|
|
using TakeoutSaaS.Application.App.QuotaPackages.Dto;
|
|
using TakeoutSaaS.Domain.Tenants.Enums;
|
|
|
|
namespace TakeoutSaaS.Application.App.QuotaPackages.Commands;
|
|
|
|
/// <summary>
|
|
/// 更新配额包命令。
|
|
/// </summary>
|
|
public sealed record UpdateQuotaPackageCommand : IRequest<QuotaPackageDto?>
|
|
{
|
|
/// <summary>
|
|
/// 配额包 ID。
|
|
/// </summary>
|
|
public long QuotaPackageId { get; init; }
|
|
|
|
/// <summary>
|
|
/// 配额包名称。
|
|
/// </summary>
|
|
public string Name { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 配额类型。
|
|
/// </summary>
|
|
public TenantQuotaType QuotaType { get; init; }
|
|
|
|
/// <summary>
|
|
/// 配额数值。
|
|
/// </summary>
|
|
public decimal QuotaValue { get; init; }
|
|
|
|
/// <summary>
|
|
/// 价格。
|
|
/// </summary>
|
|
public decimal Price { get; init; }
|
|
|
|
/// <summary>
|
|
/// 是否上架。
|
|
/// </summary>
|
|
public bool IsActive { get; init; } = true;
|
|
|
|
/// <summary>
|
|
/// 排序。
|
|
/// </summary>
|
|
public int SortOrder { get; init; } = 0;
|
|
|
|
/// <summary>
|
|
/// 描述。
|
|
/// </summary>
|
|
public string? Description { get; init; }
|
|
}
|