| using System; | 
| using System.Collections.Generic; | 
| using System.Linq; | 
| using System.Text; | 
| using System.Threading.Tasks; | 
| using WIDESEA_Core.Attributes; | 
|   | 
| namespace WIDESEA_DTO | 
| { | 
|     /// <summary> | 
|     ///  | 
|     /// </summary> | 
|     [ModelValidate] | 
|     public class MesResponseContent | 
|     { | 
|         /// <summary> | 
|         ///  | 
|         /// </summary> | 
|         public bool BSucc { get; set; } | 
|         /// <summary> | 
|         ///  | 
|         /// </summary> | 
|         public string StrCode { get; set; } | 
|         /// <summary> | 
|         /// 执行成功 | 
|         /// </summary> | 
|         public string StrMsg { get; set; } | 
|         /// <summary> | 
|         ///  | 
|         /// </summary> | 
|         public DateTime DataTime { get; set; } | 
|   | 
|         public static MesResponseContent Instance | 
|         { | 
|             get { return new MesResponseContent(); } | 
|         } | 
|   | 
|         public MesResponseContent OK(string message = null) | 
|         { | 
|             BSucc = true; | 
|             StrCode = "0000"; | 
|             StrMsg = message == null ? "执行成功" : message; | 
|             return this; | 
|         } | 
|   | 
|         public MesResponseContent Error(string message = null) | 
|         { | 
|             BSucc = false; | 
|             StrCode = "404"; | 
|             StrMsg = message == null ? "执行失败" : message; | 
|             return this; | 
|         } | 
|         public ContentMes Content { get; set; } | 
|     } | 
|     public class ContentMes: Content | 
|     { | 
|         public string Contacts { get; set; } | 
|     } | 
| } |