2026-03-18 13:47:34 +08:00

21 lines
429 B
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.Text.Json.Serialization;
namespace YD_Event.Application;
/// <summary>
/// 基础响应对象
/// </summary>
public class BaseResponseDto
{
/// <summary>
/// 状态码(200代表成功)
/// </summary>
[JsonProperty("code")]
[JsonPropertyName("code")]
public int Code { get; set; }
/// <summary>
/// 是否成功
/// </summary>
public bool Success => Code == 200;
}