namespace NetAdmin.Domain.Dto;

/// <summary>
///     信息：RESTful 风格结果集
/// </summary>
public record RestfulInfo<T> : DataAbstraction
{
    /// <summary>
    ///     代码
    /// </summary>
    [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
    public ErrorCodes Code { get; init; }

    /// <summary>
    ///     数据
    /// </summary>
    public T Data { get; init; }

    /// <summary>
    ///     消息
    /// </summary>
    public virtual object Msg { get; init; }
}