feat: 手动创建租户支持可选审核,新增审核通过/驳回接口
- CreateTenantManuallyCommand 添加 IsSkipApproval 字段 - 根据 IsSkipApproval 自动设置租户状态和认证状态 - 新增 ApproveTenantCommand/Handler 审核通过逻辑 - 新增 RejectTenantCommand/Handler 审核驳回逻辑 - TenantsController 添加 PUT /approve 和 PUT /reject 接口 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -112,6 +112,15 @@ public sealed record CreateTenantManuallyCommand : IRequest<TenantDetailDto>
|
||||
/// </summary>
|
||||
public TenantStatus TenantStatus { get; init; } = TenantStatus.Active;
|
||||
|
||||
/// <summary>
|
||||
/// 是否跳过审核(直接激活)。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// true:租户状态设为 Active,认证状态设为 Approved(默认)。
|
||||
/// false:租户状态设为 PendingReview,认证状态设为 Pending,需后续审核。
|
||||
/// </remarks>
|
||||
public bool IsSkipApproval { get; init; } = true;
|
||||
|
||||
// 2. 订阅信息(public.tenant_subscriptions)
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user