995ca384a4fb5f88d8e251903c4ea74be69cfc6c.svn-base 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. package cn.com.goldenwater.dcproj.model;
  2. import cn.com.goldenwater.core.model.BaseBean;
  3. import io.swagger.annotations.ApiModelProperty;
  4. import io.swagger.annotations.ApiParam;
  5. import java.io.Serializable;
  6. import java.util.List;
  7. /**
  8. * entity:Priv
  9. *
  10. * @author lune
  11. * @date 2018-2-13
  12. */
  13. public class Priv extends BaseBean implements Serializable {
  14. //ID(主键)
  15. @ApiParam(value = "ID(长度:64,主键)")
  16. @ApiModelProperty(value = "ID(长度:64,主键)", notes = "ID")
  17. private String id;
  18. //叶子节点标识
  19. @ApiParam(value = "叶子节点标识(长度:1,可为空:Y,默认值:'0')")
  20. @ApiModelProperty(value = "叶子节点标识(长度:1,可为空:Y,默认值:'0')", notes = "叶子节点标识")
  21. private String flagLeaf;
  22. //显示顺序
  23. @ApiParam(value = "显示顺序(精度:5,可为空:Y)")
  24. @ApiModelProperty(value = "显示顺序(精度:5,可为空:Y)", notes = "显示顺序")
  25. private Long seq;
  26. //菜单,表单控件(包括按钮、输入或显示控件、表单区域div/table等)
  27. @ApiParam(value = "菜单,表单控件(包括按钮、输入或显示控件、表单区域div/table等)(长度:12,可为空:Y)")
  28. @ApiModelProperty(value = "菜单,表单控件(包括按钮、输入或显示控件、表单区域div/table等)(长度:12,可为空:Y)", notes = "菜单,表单控件(包括按钮、输入或显示控件、表单区域div/table等)")
  29. private String privType;
  30. //权限名称
  31. @ApiParam(value = "权限名称(长度:256,可为空:Y)")
  32. @ApiModelProperty(value = "权限名称(长度:256,可为空:Y)", notes = "权限名称")
  33. private String privName;
  34. //归属系统
  35. @ApiParam(value = "归属系统(长度:64,可为空:Y)")
  36. @ApiModelProperty(value = "归属系统(长度:64,可为空:Y)", notes = "归属系统")
  37. private String ownerSystem;
  38. //样例:菜单是sys:user、按钮为user:add、表单控件为user:basic(页面:区域标识(div/table/控件等))
  39. @ApiParam(value = "样例:菜单是sys:user、按钮为user:add、表单控件为user:basic(页面:区域标识(div/table/控件等))(长度:256,可为空:Y)")
  40. @ApiModelProperty(value = "样例:菜单是sys:user、按钮为user:add、表单控件为user:basic(页面:区域标识(div/table/控件等))(长度:256,可为空:Y)", notes = "样例:菜单是sys:user、按钮为user:add、表单控件为user:basic(页面:区域标识(div/table/控件等))")
  41. private String code;
  42. //父权限ID
  43. @ApiModelProperty(value = "父权限ID(长度:64,没有请传0)", notes = "父权限ID")
  44. private String parentId;
  45. //对应后台Controller中的URI,后台按此URI控制访问权限;菜单或按钮时应有值
  46. @ApiParam(value = "对应后台Controller中的URI,后台按此URI控制访问权限;菜单或按钮时应有值(长度:512,可为空:Y)")
  47. @ApiModelProperty(value = "对应后台Controller中的URI,后台按此URI控制访问权限;菜单或按钮时应有值(长度:512,可为空:Y)", notes = "对应后台Controller中的URI,后台按此URI控制访问权限;菜单或按钮时应有值")
  48. private String privUri;
  49. private List<String> menuIds;
  50. private List<Priv> children;
  51. public Priv() {
  52. }
  53. public List<Priv> getChildren() {
  54. return children;
  55. }
  56. public void setChildren(List<Priv> children) {
  57. this.children = children;
  58. }
  59. public Long getSeq() {
  60. return seq;
  61. }
  62. public void setSeq(Long seq) {
  63. this.seq = seq;
  64. }
  65. public String getOwnerSystem() {
  66. return ownerSystem;
  67. }
  68. public void setOwnerSystem(String ownerSystem) {
  69. this.ownerSystem = ownerSystem;
  70. }
  71. public String getCode() {
  72. return code;
  73. }
  74. public void setCode(String code) {
  75. this.code = code;
  76. }
  77. public String getId() {
  78. return id;
  79. }
  80. public void setId(String id) {
  81. this.id = id;
  82. }
  83. public String getPrivName() {
  84. return privName;
  85. }
  86. public void setPrivName(String privName) {
  87. this.privName = privName;
  88. }
  89. public String getPrivType() {
  90. return privType;
  91. }
  92. public void setPrivType(String privType) {
  93. this.privType = privType;
  94. }
  95. public String getPrivUri() {
  96. return privUri;
  97. }
  98. public void setPrivUri(String privUri) {
  99. this.privUri = privUri;
  100. }
  101. public String getParentId() {
  102. return parentId;
  103. }
  104. public void setParentId(String parentId) {
  105. this.parentId = parentId;
  106. }
  107. public String getFlagLeaf() {
  108. return flagLeaf;
  109. }
  110. public void setFlagLeaf(String flagLeaf) {
  111. this.flagLeaf = flagLeaf;
  112. }
  113. public List<String> getMenuIds() {
  114. return menuIds;
  115. }
  116. public void setMenuIds(List<String> menuIds) {
  117. this.menuIds = menuIds;
  118. }
  119. @Override
  120. public String toString() {
  121. return "Priv [" + "id=" + id + ", privName=" + privName + ", privType=" + privType + ", parentId=" + parentId + ", flagLeaf=" + flagLeaf + "]";
  122. }
  123. }