ApiJsonModel.cs 814 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace XYY.Tool.TimingTask.Model
  8. {
  9. [Serializable]
  10. public class ApiJsonModel
  11. {
  12. /// <summary>
  13. /// 错误码(0表示无错误)
  14. /// </summary>
  15. public HttpStatusCode code { get; set; }
  16. /// <summary>
  17. /// 是否成功
  18. /// </summary>
  19. public bool success { get; set; }
  20. /// <summary>
  21. /// 错误信息
  22. /// </summary>
  23. public string error { get; set; }
  24. /// <summary>
  25. /// 消息
  26. /// </summary>
  27. public string message { get; set; }
  28. /// <summary>
  29. /// Json数据
  30. /// </summary>
  31. public object data { get; set; }
  32. }
  33. }