RoleCodeEnum.java 700 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.xjrsoft.common.enums;
  2. /**
  3. * 系统角色编码
  4. */
  5. public enum RoleCodeEnum {
  6. /**
  7. * 超级管理员
  8. */
  9. ADMIN("ADMIN", "超级管理员"),
  10. /**
  11. * 教师
  12. */
  13. TEACHER("TEACHER", "教师"),
  14. /**
  15. * 学生
  16. */
  17. STUDENT("STUDENT", "学生"),
  18. /**
  19. * 家长
  20. */
  21. PARENT("PARENT", "家长"),
  22. CLASSTE("CLASSTE", "班主任");
  23. final String code;
  24. final String value;
  25. public String getCode() {
  26. return this.code;
  27. }
  28. public String getValue() {
  29. return this.value;
  30. }
  31. RoleCodeEnum(final String code, final String message) {
  32. this.code = code;
  33. this.value = message;
  34. }
  35. }