Files
tiku-backend.net/Tiku.Api/Contracts/TenantLifecycleDtos.cs

24 lines
733 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 System.ComponentModel.DataAnnotations;
namespace Tiku.Api.Contracts;
/// <summary>租户生命周期变更原因。</summary>
public sealed class TenantLifecycleReasonDto
{
/// <summary>审计原因。</summary>
[Required, StringLength(1000, MinimumLength = 3)]
public string Reason { get; set; } = string.Empty;
}
/// <summary>租户所有者转移请求。</summary>
public sealed class TenantOwnerTransferDto
{
/// <summary>新的所有者用户 ID必须是现有活跃成员。</summary>
[Required]
public Guid TargetUserId { get; set; }
/// <summary>审计原因。</summary>
[Required, StringLength(1000, MinimumLength = 3)]
public string Reason { get; set; } = string.Empty;
}