平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ErrorCodeEnum.cs 701 B

4 months ago
123456789101112131415161718192021222324252627282930313233343536373839
  1. 
  2. namespace SafeCampus.Core;
  3. /// <summary>
  4. /// 通用错误码
  5. /// </summary>
  6. [ErrorCodeType]
  7. public enum ErrorCodeEnum
  8. {
  9. /// <summary>
  10. /// 系统异常
  11. /// </summary>
  12. [ErrorCodeItemMetadata("系统异常")]
  13. A0000,
  14. /// <summary>
  15. /// 数据不存在
  16. /// </summary>
  17. [ErrorCodeItemMetadata("数据不存在")]
  18. A0001,
  19. /// <summary>
  20. /// 删除失败
  21. /// </summary>
  22. [ErrorCodeItemMetadata("删除失败")]
  23. A0002,
  24. /// <summary>
  25. /// 操作失败
  26. /// </summary>
  27. [ErrorCodeItemMetadata("操作失败")]
  28. A0003,
  29. /// <summary>
  30. /// 没有权限
  31. /// </summary>
  32. [ErrorCodeItemMetadata("没有权限")]
  33. A0004
  34. }