SysRepo.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. package com.ruoyi.system.domain;
  2. import com.ruoyi.common.core.domain.entity.SysMenu;
  3. import org.apache.commons.lang3.builder.ToStringBuilder;
  4. import org.apache.commons.lang3.builder.ToStringStyle;
  5. import com.ruoyi.common.annotation.Excel;
  6. import com.ruoyi.common.core.domain.BaseEntity;
  7. import java.util.ArrayList;
  8. import java.util.List;
  9. /**
  10. * 仓库文件对象 sys_repo
  11. *
  12. * @author liyingjin
  13. * @date 2025-05-15
  14. */
  15. public class SysRepo extends BaseEntity
  16. {
  17. private static final long serialVersionUID = 1L;
  18. /** 仓库文件Id */
  19. private Long repoId;
  20. private Long createBy;
  21. /** 名称 */
  22. @Excel(name = "名称")
  23. private String repoName;
  24. /** 类别(文件docx、xls、jpg) */
  25. @Excel(name = "类别", readConverterExp = "文件docx、xls、jpg")
  26. private String repoType;
  27. /** 状态(私密、公开) */
  28. @Excel(name = "状态", readConverterExp = "私密、公开")
  29. private String repoStatus;
  30. /** 文件名 */
  31. @Excel(name = "文件名")
  32. private String fileName;
  33. /** 等级(一级只能是目录类型) */
  34. private Long groupId;
  35. /** 描述 */
  36. @Excel(name = "版本")
  37. private String version;
  38. /** 是否删除 */
  39. @Excel(name = "是否删除")
  40. private Integer isDelete;
  41. /** url */
  42. private String url;
  43. private List<SysMenu> children = new ArrayList<SysMenu>();
  44. public Long getRepoId()
  45. {
  46. return repoId;
  47. }
  48. public void setRepoName(String repoName)
  49. {
  50. this.repoName = repoName;
  51. }
  52. public String getRepoName()
  53. {
  54. return repoName;
  55. }
  56. public void setRepoType(String repoType)
  57. {
  58. this.repoType = repoType;
  59. }
  60. public String getRepoType()
  61. {
  62. return repoType;
  63. }
  64. public void setRepoStatus(String repoStatus)
  65. {
  66. this.repoStatus = repoStatus;
  67. }
  68. public String getRepoStatus()
  69. {
  70. return repoStatus;
  71. }
  72. public void setFileName(String fileName)
  73. {
  74. this.fileName = fileName;
  75. }
  76. public String getFileName()
  77. {
  78. return fileName;
  79. }
  80. public void setGroupId(Long groupId)
  81. {
  82. this.groupId = groupId;
  83. }
  84. public Long getGroupId()
  85. {
  86. return groupId;
  87. }
  88. public void setVersion(String version)
  89. {
  90. this.version = version;
  91. }
  92. public String getVersion()
  93. {
  94. return version;
  95. }
  96. public void setIsDelete(Integer isDelete)
  97. {
  98. this.isDelete = isDelete;
  99. }
  100. public Integer getIsDelete()
  101. {
  102. return isDelete;
  103. }
  104. public String getUrl() {
  105. return url;
  106. }
  107. public void setUrl(String url) {
  108. this.url = url;
  109. }
  110. @Override
  111. public String toString() {
  112. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  113. .append("repoId", getRepoId())
  114. .append("repoName", getRepoName())
  115. .append("createBy", getCreateBy())
  116. .append("updateBy", getUpdateBy())
  117. .append("repoType", getRepoType())
  118. .append("repoStatus", getRepoStatus())
  119. .append("createTime", getCreateTime())
  120. .append("updateTime", getUpdateTime())
  121. .append("fileName", getFileName())
  122. .append("groupId", getGroupId())
  123. .append("version", getVersion())
  124. .append("isDelete", getIsDelete())
  125. .append("url", getIsDelete())
  126. .toString();
  127. }
  128. }