All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.didiglobal.logi.security.common.vo.dept.DeptTreeVO Maven / Gradle / Ivy

Go to download

logi-security 提供项目大多都需要的一些基础功能(用户、角色、权限、登录、注册、操作记录)

There is a newer version: 2.10.19
Show newest version
package com.didiglobal.logi.security.common.vo.dept;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.List;

/**
 * @author cjm
 */
@Data
@Builder
@ApiModel(description = "部门树信息")
public class DeptTreeVO {

    @ApiModelProperty(value = "部门id", dataType = "Integer", required = false)
    private Integer id;

    @ApiModelProperty(value = "部门名", dataType = "String", required = false)
    private String deptName;

    @ApiModelProperty(value = "描述", dataType = "String", required = false)
    private String description;

    @ApiModelProperty(value = "父部门id(根部门parentId为0)", dataType = "Integer", required = false)
    private Integer parentId;

    @ApiModelProperty(value = "是否是叶子部门", dataType = "Boolean", required = false)
    private Boolean leaf;
    
    @ApiModelProperty(value = "孩子部门", dataType = "List", required = false)
    private List childList;

    @Tolerate
    public DeptTreeVO() {
        // 空构造函数需要加上@Tolerate注解,这样就不会和@Builder冲突了
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy