平安校园
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.
 
 
 
 
 
 

40 line
701 B

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