Browse Source

删除userVO不需要的字段

test
smallchill 6 years ago
parent
commit
5cac880acc
  1. 26
      blade-service-api/blade-user-api/src/main/java/org/springblade/system/user/vo/UserVO.java

26
blade-service-api/blade-user-api/src/main/java/org/springblade/system/user/vo/UserVO.java

@ -16,16 +16,11 @@
*/
package org.springblade.system.user.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tool.node.INode;
import org.springblade.system.user.entity.User;
import java.util.ArrayList;
import java.util.List;
/**
* 视图实体类
*
@ -35,7 +30,7 @@ import java.util.List;
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserVO对象", description = "UserVO对象")
public class UserVO extends User implements INode {
public class UserVO extends User {
private static final long serialVersionUID = 1L;
/**
@ -43,25 +38,6 @@ public class UserVO extends User implements INode {
*/
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;
}
/**
* 角色名
*/

Loading…
Cancel
Save