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

com.didiglobal.logi.security.common.dto.permission.PermissionDTO Maven / Gradle / Ivy

The newest version!
package com.didiglobal.logi.security.common.dto.permission;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cjm
 */
@Data
@ApiModel(description = "权限导入信息")
public class PermissionDTO {

    @ApiModelProperty(value = "权限名", dataType = "String", required = true)
    private String permissionName;

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

    @ApiModelProperty(value = "子权限", dataType = "List", required = false)
    private List childPermissionDTOList;

    public List getChildPermissionDTOList() {
        if(childPermissionDTOList == null) {
            childPermissionDTOList = new ArrayList<>();
        }
        return childPermissionDTOList;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy