@PutMapping("/{id}")
    @RequiresPermissions("system:plugin:edit")
    public ShenyuAdminResult updatePlugin(@Existed(message = "namespace plugin relation is not exist", provider = NamespacePluginRelMapper.class)
                                          @PathVariable("id") final String id,
                                          @Valid @RequestBody final NamespacePluginDTO namespacePluginDTO) {
        namespacePluginDTO.setId(id);
        return ShenyuAdminResult.success(namespacePluginService.update(namespacePluginDTO));
    }
update plugin of namespace.

@param id                namespace plugin relation id.
@param namespacePluginDTO plugin namespace.
@return {@linkplain ShenyuAdminResult}
shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/NamespacePluginController.java