using System.Text.Json.Serialization;
using TakeoutSaaS.Shared.Abstractions.Serialization;

namespace TakeoutSaaS.Application.Identity.Contracts;

/// <summary>
/// 批量操作失败项。
/// </summary>
public sealed record BatchIdentityUserFailureItem
{
    /// <summary>
    /// 用户 ID。
    /// </summary>
    [JsonConverter(typeof(SnowflakeIdJsonConverter))]
    public long UserId { get; init; }

    /// <summary>
    /// 失败原因。
    /// </summary>
    public string Reason { get; init; } = string.Empty;
}
