2025-12-17 11:12:13 +08:00

18 lines
374 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

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;
public class BaseResponseDto
{
/// <summary>
/// 状态码200代表成功
/// </summary>
[JsonProperty("code")]
[JsonPropertyName("code")]
public int Code { get; set; }
/// <summary>
/// 是否成功
/// </summary>
public bool Success => Code == 200;
}