package jnpf.model.authority.vo.person;

import jnpf.model.authority.po.FtbPermissionRole;
import lombok.Data;

@Data
public class FtbRoleListDropDownVO {
    /**
     * 角色主键id
     */
    private String roleId;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 是否开启 0 否 1 是
     */
    private  Boolean isOpen=false;

    public static  FtbRoleListDropDownVO covert(FtbPermissionRole c) {
        if (c == null) {
            return null;
        }
        FtbRoleListDropDownVO ftbRoleListDropDownVO = new FtbRoleListDropDownVO();
        ftbRoleListDropDownVO.setRoleName(c.getRoleName());
        ftbRoleListDropDownVO.setRoleId(c.getId());
        return ftbRoleListDropDownVO;
    }
}
