feat: 公域租户订阅自助接口

This commit is contained in:
2025-12-12 20:00:55 +08:00
parent ddeebc7d80
commit aa81dddc16
3 changed files with 190 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
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; }
}