30 lines
711 B
C#
30 lines
711 B
C#
using MediatR;
|
||
using System.ComponentModel.DataAnnotations;
|
||
using TakeoutSaaS.Application.App.Tenants.Dto;
|
||
|
||
namespace TakeoutSaaS.Application.App.Tenants.Commands;
|
||
|
||
/// <summary>
|
||
/// 租户初次绑定订阅命令(默认 0 个月)。
|
||
/// </summary>
|
||
public sealed record BindInitialTenantSubscriptionCommand : IRequest<TenantSubscriptionDto>
|
||
{
|
||
/// <summary>
|
||
/// 租户 ID(雪花算法)。
|
||
/// </summary>
|
||
[Required]
|
||
public long TenantId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 套餐 ID。
|
||
/// </summary>
|
||
[Required]
|
||
public long TenantPackageId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 是否自动续费。
|
||
/// </summary>
|
||
public bool AutoRenew { get; init; }
|
||
}
|
||
|