MetaVo.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.ruoyi.system.domain.vo;
  2. /**
  3. * 路由显示信息
  4. *
  5. * @author ruoyi
  6. */
  7. public class MetaVo
  8. {
  9. /**
  10. * 设置该路由在侧边栏和面包屑中展示的名字
  11. */
  12. private String title;
  13. /**
  14. * 设置该路由的图标,对应路径src/assets/icons/svg
  15. */
  16. private String icon;
  17. /**
  18. * 设置为true,则不会被 <keep-alive>缓存
  19. */
  20. private boolean noCache;
  21. public MetaVo()
  22. {
  23. }
  24. public MetaVo(String title, String icon)
  25. {
  26. this.title = title;
  27. this.icon = icon;
  28. }
  29. public MetaVo(String title, String icon, boolean noCache)
  30. {
  31. this.title = title;
  32. this.icon = icon;
  33. this.noCache = noCache;
  34. }
  35. public boolean isNoCache()
  36. {
  37. return noCache;
  38. }
  39. public void setNoCache(boolean noCache)
  40. {
  41. this.noCache = noCache;
  42. }
  43. public String getTitle()
  44. {
  45. return title;
  46. }
  47. public void setTitle(String title)
  48. {
  49. this.title = title;
  50. }
  51. public String getIcon()
  52. {
  53. return icon;
  54. }
  55. public void setIcon(String icon)
  56. {
  57. this.icon = icon;
  58. }
  59. }