AppResult.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace GxPress.Result
  5. {
  6. /// <summary>
  7. /// App返回
  8. /// </summary>
  9. public class AppResult<TItem>
  10. {
  11. /// <summary>
  12. /// 状态码
  13. /// </summary>
  14. public int Code { get; set; }
  15. /// <summary>
  16. /// 消息
  17. /// </summary>
  18. public string Msg { get; set; }
  19. /// <summary>
  20. /// 是否成功
  21. /// </summary>
  22. /// <value></value>
  23. public bool Success { get; set; }
  24. /// <summary>
  25. ///
  26. /// </summary>
  27. /// <value></value>
  28. public IEnumerable<TItem> Data { get; set; }
  29. }
  30. public class AppResultJson<TItem>
  31. {
  32. /// <summary>
  33. /// 状态码
  34. /// </summary>
  35. public int Code { get; set; }
  36. /// <summary>
  37. /// 消息
  38. /// </summary>
  39. public string Msg { get; set; }
  40. /// <summary>
  41. /// 是否成功
  42. /// </summary>
  43. /// <value></value>
  44. public bool Success { get; set; }
  45. /// <summary>
  46. ///
  47. /// </summary>
  48. /// <value></value>
  49. public TItem Data { get; set; }
  50. }
  51. }