ds8-solution-pro/ds-wms-service/DS.WMS.PrintApi/Model/PrintDataResult.cs

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
};
}
}
}