RouterVo.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. package com.ylx.system.domain.vo;
  2. import com.fasterxml.jackson.annotation.JsonInclude;
  3. import java.util.List;
  4. /**
  5. * 路由配置信息
  6. *
  7. * @author ylx
  8. */
  9. @JsonInclude(JsonInclude.Include.NON_EMPTY)
  10. public class RouterVo {
  11. /**
  12. * 路由名字
  13. */
  14. private String name;
  15. /**
  16. * 路由地址
  17. */
  18. private String path;
  19. /**
  20. * 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现
  21. */
  22. private boolean hidden;
  23. /**
  24. * 重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
  25. */
  26. private String redirect;
  27. /**
  28. * 组件地址
  29. */
  30. private String component;
  31. /**
  32. * 路由参数:如 {"id": 1, "name": "ry"}
  33. */
  34. private String query;
  35. /**
  36. * 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面
  37. */
  38. private Boolean alwaysShow;
  39. /**
  40. * 其他元素
  41. */
  42. private MetaVo meta;
  43. /**
  44. * 子路由
  45. */
  46. private List<RouterVo> children;
  47. public String getName() {
  48. return name;
  49. }
  50. public void setName(String name) {
  51. this.name = name;
  52. }
  53. public String getPath() {
  54. return path;
  55. }
  56. public void setPath(String path) {
  57. this.path = path;
  58. }
  59. public boolean getHidden() {
  60. return hidden;
  61. }
  62. public void setHidden(boolean hidden) {
  63. this.hidden = hidden;
  64. }
  65. public String getRedirect() {
  66. return redirect;
  67. }
  68. public void setRedirect(String redirect) {
  69. this.redirect = redirect;
  70. }
  71. public String getComponent() {
  72. return component;
  73. }
  74. public void setComponent(String component) {
  75. this.component = component;
  76. }
  77. public String getQuery() {
  78. return query;
  79. }
  80. public void setQuery(String query) {
  81. this.query = query;
  82. }
  83. public Boolean getAlwaysShow() {
  84. return alwaysShow;
  85. }
  86. public void setAlwaysShow(Boolean alwaysShow) {
  87. this.alwaysShow = alwaysShow;
  88. }
  89. public MetaVo getMeta() {
  90. return meta;
  91. }
  92. public void setMeta(MetaVo meta) {
  93. this.meta = meta;
  94. }
  95. public List<RouterVo> getChildren() {
  96. return children;
  97. }
  98. public void setChildren(List<RouterVo> children) {
  99. this.children = children;
  100. }
  101. }