Result.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain
  7. {
  8. public class Result
  9. {
  10. public int Code { get; set; } = -1;
  11. public string Msg { get; set; } = "未知错误";
  12. public dynamic? Data { get; set; } = new { };
  13. }
  14. /// <summary>
  15. /// 公共静态数据
  16. /// </summary>
  17. public static class SharingStaticData
  18. {
  19. /// <summary>
  20. /// 端口静态数据
  21. /// </summary>
  22. public static List<int> PortTypes = new() { 1, 2, 3 };
  23. }
  24. /// <summary>
  25. /// 消息 Tips
  26. /// </summary>
  27. public static class MsgTips
  28. {
  29. /// <summary>
  30. /// 成功 消息提示
  31. /// </summary>
  32. public static string Succeed = "操作成功!";
  33. /// <summary>
  34. /// 失败 消息提示
  35. /// </summary>
  36. public static string Fail = "操作失败!";
  37. /// <summary>
  38. /// 添加成功
  39. /// </summary>
  40. public static string AddSucceed = "添加成功!";
  41. /// <summary>
  42. /// 添加成功
  43. /// </summary>
  44. public static string AddFail = "添加失败!";
  45. /// <summary>
  46. /// 修改成功
  47. /// </summary>
  48. public static string EditSucceed = "修改成功!";
  49. /// <summary>
  50. /// 修改成功
  51. /// </summary>
  52. public static string EditFail = "修改失败!";
  53. /// <summary>
  54. /// 端口错误消息提示
  55. /// </summary>
  56. public static string Port = "请检查端口值是否正确!“portType”:1:WEB;2:ANDROID;3:IOS;";
  57. /// <summary>
  58. /// 端口错误消息提示-Mobile
  59. /// </summary>
  60. public static string MobilePort = "请检查端口值是否正确!“portType”:2:ANDROID;3:IOS;";
  61. /// <summary>
  62. /// PageIndex 错误消息提示
  63. /// </summary>
  64. public static string PageIndex = "请检查当前页面(pageIndex)是否正确!";
  65. /// <summary>
  66. /// PageSize 错误消息提示
  67. /// </summary>
  68. public static string PageSize = "请检查每页长度(pageSize)是否正确!";
  69. /// <summary>
  70. /// 团组Id错误消息提示
  71. /// </summary>
  72. public static string DiId = "请检查团组Id(diid)是否正确!";
  73. /// <summary>
  74. /// 数据Id错误消息提示
  75. /// </summary>
  76. public static string Id = "请检查数据Id(id)是否正确!";
  77. /// <summary>
  78. /// 数据Id错误消息提示
  79. /// </summary>
  80. public static string Status = "请检查状态Id(Status)是否正确!1 添加 2 修改";
  81. /// <summary>
  82. /// UserId错误消息提示
  83. /// </summary>
  84. public static string UserId = "请检查UserId是否正确!";
  85. /// <summary>
  86. /// OperateId错误消息提示
  87. /// </summary>
  88. public static string OperateId = "请传入有效的操作类型Id";
  89. /// <summary>
  90. /// PageId错误消息提示
  91. /// </summary>
  92. public static string PageId = "请检查PageId是否正确!";
  93. /// <summary>
  94. /// CheckAuth 错误消息提示
  95. /// </summary>
  96. public static string CheckAuth = "您没有查看权限!";
  97. }
  98. }