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