36 lines
824 B
C#
36 lines
824 B
C#
namespace InterfaceForward.Application.Contracts.ForwardCore;
|
|
|
|
[Serializable]
|
|
public class InterfaceRelayUnifyResultDto
|
|
{
|
|
public InterfaceRelayUnifyResultDto()
|
|
{
|
|
|
|
}
|
|
public InterfaceRelayUnifyResultDto(bool isSuccess, object data)
|
|
{
|
|
this.Code = isSuccess? 200.ToString(): 400.ToString();
|
|
this.Data = data;
|
|
this.Msg = isSuccess? "成功": "失败";
|
|
}
|
|
public string Code { get; set; }
|
|
|
|
public string Msg { get; set; }
|
|
|
|
public object Data { get; set; }
|
|
|
|
/// <summary>
|
|
/// 请求Id
|
|
/// </summary>
|
|
public Guid RequestId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 原报文
|
|
/// </summary>
|
|
public string? OriginalMessage { get; set; }
|
|
|
|
/// <summary>
|
|
/// 附加数据
|
|
/// </summary>
|
|
public string? Attach { get; set; }
|
|
} |