59 lines
1.3 KiB
C#
59 lines
1.3 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 TenantAuditLogDto
|
|
{
|
|
/// <summary>
|
|
/// 日志 ID。
|
|
/// </summary>
|
|
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
|
public long Id { get; init; }
|
|
|
|
/// <summary>
|
|
/// 租户 ID。
|
|
/// </summary>
|
|
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
|
public long TenantId { get; init; }
|
|
|
|
/// <summary>
|
|
/// 动作。
|
|
/// </summary>
|
|
public TenantAuditAction Action { get; init; }
|
|
|
|
/// <summary>
|
|
/// 标题。
|
|
/// </summary>
|
|
public string Title { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 描述。
|
|
/// </summary>
|
|
public string? Description { get; init; }
|
|
|
|
/// <summary>
|
|
/// 操作人。
|
|
/// </summary>
|
|
public string? OperatorName { get; init; }
|
|
|
|
/// <summary>
|
|
/// 原状态。
|
|
/// </summary>
|
|
public TenantStatus? PreviousStatus { get; init; }
|
|
|
|
/// <summary>
|
|
/// 新状态。
|
|
/// </summary>
|
|
public TenantStatus? CurrentStatus { get; init; }
|
|
|
|
/// <summary>
|
|
/// 创建时间。
|
|
/// </summary>
|
|
public DateTime CreatedAt { get; init; }
|
|
}
|