You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
723 B
C#
33 lines
723 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Estsh.Core.Model.Result
|
|
{
|
|
/// <summary>
|
|
/// 错误结果信息
|
|
/// </summary>
|
|
public class ErrorResult
|
|
{
|
|
|
|
/// <summary>
|
|
/// 标志位
|
|
/// </summary>
|
|
public bool Success { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// 应答消息
|
|
/// </summary>
|
|
public String Message { get; set; } = "An unexpected error occurred";
|
|
|
|
/// <summary>
|
|
/// ToJson方法
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public String ToJson() => JsonSerializer.Serialize(this);
|
|
}
|
|
}
|