38 lines
976 B
C#
38 lines
976 B
C#
using System.Collections.Generic;
|
|
|
|
namespace WX.CRM.Common.Layui
|
|
{
|
|
public class LayuiData<T>
|
|
{
|
|
public int code { get; set; }
|
|
public string msg { get; set; }
|
|
public int count { get; set; }
|
|
public List<T> data { get; set; }
|
|
public object totalRow { get; set; }
|
|
public void SetFail(int code, string msg)
|
|
{
|
|
this.code = code;
|
|
this.msg = msg;
|
|
this.count = 0;
|
|
this.data = null;
|
|
}
|
|
}
|
|
|
|
public class LayuiData<T, T2>
|
|
{
|
|
public int code { get; set; }
|
|
public string msg { get; set; }
|
|
public int count { get; set; }
|
|
public List<T> data { get; set; }
|
|
public T2 suminfo { get; set; }
|
|
public void SetFail(int code, string msg)
|
|
{
|
|
this.code = code;
|
|
this.msg = msg;
|
|
this.count = 0;
|
|
this.data = null;
|
|
this.suminfo = default(T2);
|
|
}
|
|
}
|
|
}
|