|
|
|
@ -10,10 +10,12 @@
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
|
|
public int Status { get; set; } = 200;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 操作是否成功
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsSuccess { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 返回信息
|
|
|
|
|
/// </summary>
|
|
|
|
@ -29,13 +31,11 @@
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="msg">消息</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public static Result<T> Success(string msg = "成功")
|
|
|
|
|
public static Result<T> Success(T t = default)
|
|
|
|
|
{
|
|
|
|
|
return Message(true, msg, default);
|
|
|
|
|
return Message(true, "成功", t);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 返回成功
|
|
|
|
|
/// </summary>
|
|
|
|
@ -48,7 +48,6 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 返回失败
|
|
|
|
|
/// </summary>
|
|
|
|
@ -94,11 +93,5 @@
|
|
|
|
|
{
|
|
|
|
|
return new Result<T>() { Msg = "查询成功", Data = data, IsSuccess = success };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|