42 lines
963 B
C#
42 lines
963 B
C#
namespace WCS_YongFeng
|
|
{
|
|
public class ApiResultModel<T>
|
|
{
|
|
public bool Success { get; set; }
|
|
public T Data { get; set; }
|
|
public string Msg { get; set; }
|
|
|
|
public ApiResultModel(bool state, T data, string msg)
|
|
{
|
|
if (state)
|
|
{
|
|
this.Success = true;
|
|
}
|
|
else
|
|
{
|
|
this.Success = false;
|
|
}
|
|
this.Data = data;
|
|
this.Msg = msg;
|
|
}
|
|
}
|
|
|
|
public class ApiResultModel
|
|
{
|
|
public bool Success { get; set; }
|
|
public string Msg { get; set; }
|
|
public object Data { get; set; }
|
|
|
|
public ApiResultModel(bool state, object data, string msg)
|
|
{
|
|
if (state)
|
|
{
|
|
this.Success = true;
|
|
}
|
|
else
|
|
this.Success = false;
|
|
this.Data = data;
|
|
this.Msg = msg;
|
|
}
|
|
}
|
|
} |