public void onUpdated(final RoleDO rule, final RoleDO before, final List<String> permission) {
        publish(new RoleUpdatedEvent(rule, before, SessionUtil.visitorName(), permission));
    }
on rule updated.

@param rule       rule
@param before     before rule
@param permission new permission
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/publish/RoleEventPublisher.java