OpenAuth.Net/Infrastructure/Response.cs

35 lines
794 B
C#
Raw Permalink Normal View History

2016-10-14 11:22:16 +08:00
namespace Infrastructure
2015-11-03 00:22:54 +08:00
{
public class Response
{
/// <summary>
/// 操作消息【当Status不为 200时显示详细的错误信息】
/// </summary>
public string Message { get; set; }
/// <summary>
/// 操作状态码200为正常
/// </summary>
public int Code { get; set; }
public Response()
{
Code = 200;
2017-11-30 17:47:41 +08:00
Message = "操作成功";
}
}
/// <summary>
/// WEBAPI通用返回泛型基类
/// </summary>
/// <typeparam name="T"></typeparam>
public class Response<T> : Response
{
/// <summary>
/// 回传的结果
/// </summary>
public T Result { get; set; }
2015-11-03 00:22:54 +08:00
}
}