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.

46 lines
1.1 KiB
C#

namespace EntrustSettle.Model
{
/// <summary>
/// 通用返回信息类
/// </summary>
public class MessageModel<T>
{
/// <summary>
/// 状态码
/// </summary>
9 months ago
public int code { get; set; }
/// <summary>
/// 操作是否成功
/// </summary>
9 months ago
public bool success { get; set; }
/// <summary>
/// 返回信息
/// </summary>
9 months ago
public string msg { get; set; }
/// <summary>
/// 开发者信息
/// </summary>
public string msgDev { get; set; }
/// <summary>
/// 返回数据集合
/// </summary>
9 months ago
public T data { get; set; }
}
public class MessageModel
{
/// <summary>
9 months ago
/// 状态码 2xxx:正常;4xxx:客户端错误代码;5xxx:后台错误代码
/// </summary>
9 months ago
public int code { get; set; }
/// <summary>
/// 操作是否成功
/// </summary>
9 months ago
public bool success { get; set; }
/// <summary>
/// 返回信息
/// </summary>
9 months ago
public string msg { get; set; }
}
}