48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using System.Text.Json.Serialization;
|
|
using TakeoutSaaS.Domain.Tenants.Enums;
|
|
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
|
|
|
namespace TakeoutSaaS.Application.App.Tenants.Dto;
|
|
|
|
/// <summary>
|
|
/// 自助注册结果 DTO。
|
|
/// </summary>
|
|
public sealed class SelfRegisterResultDto
|
|
{
|
|
/// <summary>
|
|
/// 租户 ID。
|
|
/// </summary>
|
|
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
|
public long TenantId { get; init; }
|
|
|
|
/// <summary>
|
|
/// 租户编码。
|
|
/// </summary>
|
|
public string Code { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 初始状态。
|
|
/// </summary>
|
|
public TenantStatus Status { get; init; } = TenantStatus.PendingReview;
|
|
|
|
/// <summary>
|
|
/// 当前实名状态。
|
|
/// </summary>
|
|
public TenantVerificationStatus VerificationStatus { get; init; } = TenantVerificationStatus.Draft;
|
|
|
|
/// <summary>
|
|
/// 订阅开始时间。
|
|
/// </summary>
|
|
public DateTime? EffectiveFrom { get; init; }
|
|
|
|
/// <summary>
|
|
/// 订阅到期时间。
|
|
/// </summary>
|
|
public DateTime? EffectiveTo { get; init; }
|
|
|
|
/// <summary>
|
|
/// 初始管理员账号。
|
|
/// </summary>
|
|
public string AdminAccount { get; init; } = string.Empty;
|
|
}
|