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.
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MaterialTraceability.Entity.DAO
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ApiResponse<T>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 状态码(如 200 成功,400 失败,500 错误)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Code { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 消息(如 "操作成功"、"参数错误")
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Msg { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 返回数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public List<T> Data { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public ParameterList parameterList { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class ParameterList
|
|
|
|
|
|
{
|
|
|
|
|
|
private string Parameter;
|
|
|
|
|
|
private string Value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|