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.

44 lines
987 B
C#

namespace DS.WMS.PrintApi.Model
{
public class PrintDataResult
{
/// <summary>
/// 是否成功
/// </summary>
public bool Succeeded { get; set; }
/// <summary>
/// 返回消息
/// </summary>
public string Message { get; set; }
/// <summary>
/// 返回结果
/// </summary>
public string Data { get; set; }
/// <summary>
///
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
public static PrintDataResult Failed(string message)
{
return new PrintDataResult()
{
Succeeded = false,
Message = message
};
}
public static PrintDataResult OK(string data)
{
return new PrintDataResult()
{
Succeeded = true,
Data = data
};
}
}
}