| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public DateTime DataTime { get; set; } |
| | | public string DataTime { get; set; } |
| | | |
| | | public static MesResponseContent Instance |
| | | { |
| | | get { return new MesResponseContent(); } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 杩斿洖 |
| | | /// </summary> |
| | | public MesResponseContent OK(string message = null) |
| | | { |
| | | BSucc = true; |
| | | StrCode = "0000"; |
| | | StrMsg = message == null ? "鎵ц鎴愬姛" : message; |
| | | DataTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | return this; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 杩斿洖 |
| | | /// </summary> |
| | | public MesResponseContent Error(string message = null) |
| | | { |
| | | BSucc = false; |
| | | StrCode = "404"; |
| | | StrMsg = message == null ? "鎵ц澶辫触" : message; |
| | | DataTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | return this; |
| | | } |
| | | public ContentMes Content { get; set; } |