ErrorCodeEnum.java 799 B

1234567891011121314151617181920212223242526272829303132
  1. package com.kcim.common.enums;
  2. public enum ErrorCodeEnum {
  3. DATA_NOT_EXIST(500, "数据不存在或已被移除"),
  4. USER_NOT_EXIST(500, "用户不存在"),
  5. USER_PASS_FALSE(500, "用户名或密码错误"),
  6. USER_NOT_LOGIN(401, "用户未登录"),
  7. NO_PERMISSION(403, "权限不足"),
  8. RESPONSIBILITY_CODE_EXIST(500, "责任中心代码重复"),
  9. FILE_UPLOAD_ERROR(500, "文件上传失败"),
  10. DEPARTMENT_NOT_EXIST(500, "科室代码未传入"),
  11. ;
  12. private Integer code;
  13. private String description;
  14. ErrorCodeEnum(Integer code, String description) {
  15. this.code = code;
  16. this.description = description;
  17. }
  18. public Integer getCode() {
  19. return code;
  20. }
  21. public String getDescription() {
  22. return description;
  23. }
  24. }