serv-资源修改
This commit is contained in:
@@ -13,6 +13,11 @@ import java.util.Date;
|
||||
public class TbResource extends BaseDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 资源ID
|
||||
*/
|
||||
private String resourceID;
|
||||
|
||||
/**
|
||||
* @description 资源标题
|
||||
@@ -99,6 +104,14 @@ public class TbResource extends BaseDTO {
|
||||
*/
|
||||
private String updater;
|
||||
|
||||
public String getResourceID() {
|
||||
return resourceID;
|
||||
}
|
||||
|
||||
public void setResourceID(String resourceID) {
|
||||
this.resourceID = resourceID;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
@@ -239,6 +252,7 @@ public class TbResource extends BaseDTO {
|
||||
public String toString() {
|
||||
return "TbResource{" +
|
||||
"id=" + getID() +
|
||||
", resourceID='" + resourceID + '\'' +
|
||||
", title='" + title + '\'' +
|
||||
", categoryID='" + categoryID + '\'' +
|
||||
", author='" + author + '\'' +
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package org.xyzh.common.vo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.xyzh.common.dto.resource.TbResource;
|
||||
import org.xyzh.common.dto.resource.TbResourceCategory;
|
||||
import org.xyzh.common.dto.resource.TbTag;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 资源VO
|
||||
* @filename ResourceVO.java
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-20
|
||||
*/
|
||||
public class ResourceVO implements Serializable{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private TbResource resource;
|
||||
|
||||
private TbResourceCategory resourceCategory;
|
||||
|
||||
private List<TbTag> tags;
|
||||
|
||||
public TbResource getResource() {
|
||||
return resource;
|
||||
}
|
||||
|
||||
public void setResource(TbResource resource) {
|
||||
this.resource = resource;
|
||||
}
|
||||
|
||||
public TbResourceCategory getResourceCategory() {
|
||||
return resourceCategory;
|
||||
}
|
||||
|
||||
public void setResourceCategory(TbResourceCategory resourceCategory) {
|
||||
this.resourceCategory = resourceCategory;
|
||||
}
|
||||
public List<TbTag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<TbTag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package org.xyzh.common.vo;
|
||||
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import org.xyzh.common.dto.resource.TbResourceTag;
|
||||
import org.xyzh.common.dto.resource.TbTag;
|
||||
|
||||
/**
|
||||
* @description 标签VO
|
||||
* @filename TagVO.java
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-15
|
||||
*/
|
||||
public class TagVO extends BaseDTO {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @description 资源ID
|
||||
*/
|
||||
private String resourceID;
|
||||
|
||||
/**
|
||||
* @description 标签ID
|
||||
*/
|
||||
private String tagID;
|
||||
|
||||
private String tagName;
|
||||
|
||||
private String tagColor;
|
||||
|
||||
/**
|
||||
* @description 创建者
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
public String getResourceID() {
|
||||
return resourceID;
|
||||
}
|
||||
|
||||
public void setResourceID(String resourceID) {
|
||||
this.resourceID = resourceID;
|
||||
}
|
||||
|
||||
public String getTagID() {
|
||||
return tagID;
|
||||
}
|
||||
|
||||
public void setTagID(String tagID) {
|
||||
this.tagID = tagID;
|
||||
}
|
||||
|
||||
public String getTagName() {
|
||||
return tagName;
|
||||
}
|
||||
|
||||
public void setTagName(String tagName) {
|
||||
this.tagName = tagName;
|
||||
}
|
||||
|
||||
public String getTagColor() {
|
||||
return tagColor;
|
||||
}
|
||||
|
||||
public void setTagColor(String tagColor) {
|
||||
this.tagColor = tagColor;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public TbResourceTag getResourceTag() {
|
||||
TbResourceTag resourceTag = new TbResourceTag();
|
||||
resourceTag.setResourceID(resourceID);
|
||||
resourceTag.setTagID(tagID);
|
||||
return resourceTag;
|
||||
}
|
||||
public TbTag getTag() {
|
||||
TbTag tag = new TbTag();
|
||||
tag.setID(tagID);
|
||||
tag.setName(tagName);
|
||||
tag.setColor(tagColor);
|
||||
return tag;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user