| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime; |
| | | |
| | | namespace WIDESEA_Core |
| | | { |
| | |
| | | Status = status; |
| | | } |
| | | public bool Status { get; set; } |
| | | public bool success { get; set; } |
| | | |
| | | public int Code { get; set; } |
| | | |
| | | public string Message { get; set; } |
| | | public string msg { get; set; } |
| | | |
| | | public object Data { get; set; } |
| | | |
| | |
| | | return this; |
| | | } |
| | | } |
| | | |
| | | public class WCSback |
| | | { |
| | | /// <summary> |
| | | /// æ¯å¦æåï¼æåè¿å空ï¼å¼å¸¸è¿åå¼å¸¸ä¿¡æ¯ |
| | | /// </summary> |
| | | public string message { get; set; } |
| | | /// <summary> |
| | | /// 1æå,0失败 |
| | | /// </summary> |
| | | public int code { get; set; } |
| | | public bool success { get; set; } |
| | | public bool data { get; set; } |
| | | |
| | | public string msg { get; set; } |
| | | |
| | | public static WCSback Instance |
| | | { |
| | | get { return new WCSback(); } |
| | | } |
| | | public WCSback OK(string message = null, object data = null) |
| | | { |
| | | success = true; |
| | | code = 200; |
| | | msg = "è¯·æ±æå"; |
| | | data = true; |
| | | return this; |
| | | } |
| | | |
| | | public WCSback Error(string message = null) |
| | | { |
| | | code = 999; |
| | | message = message; |
| | | return this; |
| | | } |
| | | } |
| | | } |