@Override
    public void onUpdated(final ResourceDO resource, final ResourceDO before) {
        publish(new ResourceChangedEvent(resource, before, EventTypeEnum.RULE_DELETE, SessionUtil.visitorName()));
    }
on resource updated.

@param resource resource
@param before   before resource
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/publish/ResourceEventPublisher.java