删除userVO不需要的字段

This commit is contained in:
smallchill 2019-02-22 09:18:44 +08:00
parent 6ac2d6ff46
commit 3041db09dc

View File

@ -15,16 +15,11 @@
*/ */
package org.springblade.system.user.vo; package org.springblade.system.user.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.springblade.core.tool.node.INode;
import org.springblade.system.user.entity.User; import org.springblade.system.user.entity.User;
import java.util.ArrayList;
import java.util.List;
/** /**
* 视图实体类 * 视图实体类
* *
@ -34,7 +29,7 @@ import java.util.List;
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserVO对象", description = "UserVO对象") @ApiModel(value = "UserVO对象", description = "UserVO对象")
public class UserVO extends User implements INode { public class UserVO extends User {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
@ -42,25 +37,6 @@ public class UserVO extends User implements INode {
*/ */
private Integer id; private Integer id;
/**
* 父节点ID
*/
private Integer parentId;
/**
* 子孙节点
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<INode> children;
@Override
public List<INode> getChildren() {
if (this.children == null) {
this.children = new ArrayList<>();
}
return this.children;
}
/** /**
* 角色名 * 角色名
*/ */