@Override
    public RoleEditVO findById(final String id) {
        RoleVO sysRole = RoleVO.buildRoleVO(roleMapper.selectById(id));
        return Optional.ofNullable(sysRole)
                .map(item -> new RoleEditVO(getPermissionIdsByRoleId(item.getId()), item, getAllPermissions()))
                .orElse(null);
    }
find role info by id.

@param id primary key
@return {@linkplain RoleEditVO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/RoleServiceImpl.java