@PutMapping
    public ShenyuAdminResult updateRule(@Valid @RequestBody final ScaleRuleDTO scaleRuleDTO) {
        if (!scaleRuleMapper.existed(scaleRuleDTO.getId())) {
            throw new ShenyuAdminException("scale rule is not existed");
        }
        return ShenyuAdminResult.success(ShenyuResultMessage.UPDATE_SUCCESS, scaleRuleService.createOrUpdate(scaleRuleDTO));
    }
update rule.

@param scaleRuleDTO scaleRuleDTO
@return ShenyuAdminResult
shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/ScaleRlueController.java