727b0a09753401eeb9d01bf4588cb0a3647039c3.svn-base 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. package cn.com.goldenwater.dcproj.model;
  2. import cn.com.goldenwater.core.model.BaseBean;
  3. import io.swagger.annotations.ApiModelProperty;
  4. import java.io.Serializable;
  5. import java.util.List;
  6. /**
  7. * entity:Role
  8. *
  9. * @author lune
  10. * @date 2018-2-13
  11. */
  12. public class Role extends BaseBean implements Serializable {
  13. //ID(主键)
  14. @ApiModelProperty(value = "ID(长度:64,主键,可为空:N)", notes = "ID", required = true)
  15. private String id;
  16. //角色名称
  17. @ApiModelProperty(value = "角色名称(长度:256,可为空:N)", notes = "角色名称", required = true)
  18. private String roleName;
  19. //机构ID
  20. @ApiModelProperty(value = "机构ID(长度:64,可为空:Y)", notes = "机构ID")
  21. private String ofcId;
  22. //归属系统
  23. @ApiModelProperty(value = "归属系统(长度:64,可为空:Y)", notes = "归属系统")
  24. private String ownerSystem;
  25. //有效标识
  26. @ApiModelProperty(value = "有效标识(长度:1,可为空:Y,默认值:'0')", notes = "有效标识")
  27. private String flagValid;
  28. //公司及子公司
  29. @ApiModelProperty(value = "数据权限范围(长度:64,可为空:Y)", notes = "数据权限范围")
  30. private String dataScope;
  31. @ApiModelProperty(value = "人员类型(1 管理员 2 机构领导 3督查人员 0 全部)", notes = "人员类型")
  32. private String persType;
  33. private List<String> privIds;
  34. //权限对象
  35. private List<Priv> priv;
  36. public String getPersType() {
  37. return persType;
  38. }
  39. public void setPersType(String persType) {
  40. this.persType = persType;
  41. }
  42. public String getOwnerSystem() {
  43. return ownerSystem;
  44. }
  45. public void setOwnerSystem(String ownerSystem) {
  46. this.ownerSystem = ownerSystem;
  47. }
  48. public String getId() {
  49. return id;
  50. }
  51. public void setId(String id) {
  52. this.id = id;
  53. }
  54. public String getOfcId() {
  55. return ofcId;
  56. }
  57. public void setOfcId(String ofcId) {
  58. this.ofcId = ofcId;
  59. }
  60. public String getRoleName() {
  61. return roleName;
  62. }
  63. public void setRoleName(String roleName) {
  64. this.roleName = roleName;
  65. }
  66. public String getFlagValid() {
  67. return flagValid;
  68. }
  69. public void setFlagValid(String flagValid) {
  70. this.flagValid = flagValid;
  71. }
  72. public String getDataScope() {
  73. return dataScope;
  74. }
  75. public void setDataScope(String dataScope) {
  76. this.dataScope = dataScope;
  77. }
  78. public List<Priv> getPriv() {
  79. return priv;
  80. }
  81. public void setPriv(List<Priv> priv) {
  82. this.priv = priv;
  83. }
  84. public List<String> getPrivIds() {
  85. return privIds;
  86. }
  87. public void setPrivIds(List<String> privIds) {
  88. this.privIds = privIds;
  89. }
  90. @Override
  91. public String toString() {
  92. return "Role [" + "id=" + id + ", ofcId=" + ofcId + ", roleName=" + roleName + ", flagValid=" + flagValid + ", dataScope=" + dataScope + "]";
  93. }
  94. }