From 99059250b451808a4b84889bc592aec57d5caa73 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 17 Apr 2024 20:07:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=AB=E6=8D=B7=E4=BF=AE=E6=94=B9=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E5=90=8D=E7=A7=B0=E9=94=99=E8=AF=AF=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039663 --user=王孝刚 【接口测试】报告-用例报告-快捷编辑名称提示只支持输入字符串 https://www.tapd.cn/55049933/s/1500279 --- .../api/controller/definition/ApiReportController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiReportController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiReportController.java index 8a1ed1f308..d9cc40a75e 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiReportController.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiReportController.java @@ -1,6 +1,5 @@ package io.metersphere.api.controller.definition; -import com.fasterxml.jackson.databind.node.TextNode; import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import io.metersphere.api.dto.definition.ApiReportBatchRequest; @@ -8,9 +7,9 @@ import io.metersphere.api.dto.definition.ApiReportDTO; import io.metersphere.api.dto.definition.ApiReportDetailDTO; import io.metersphere.api.dto.definition.ApiReportPageRequest; import io.metersphere.api.dto.report.ApiReportListDTO; -import io.metersphere.api.service.definition.ApiReportNoticeService; import io.metersphere.api.service.ApiReportShareService; import io.metersphere.api.service.definition.ApiReportLogService; +import io.metersphere.api.service.definition.ApiReportNoticeService; import io.metersphere.api.service.definition.ApiReportService; import io.metersphere.sdk.constants.PermissionConstants; import io.metersphere.sdk.domain.ShareInfo; @@ -57,8 +56,8 @@ public class ApiReportController { @CheckOwner(resourceId = "#id", resourceType = "api_report") @RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_UPDATE) @Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#id)", msClass = ApiReportLogService.class) - public void rename(@PathVariable String id, @RequestBody TextNode name) { - apiReportService.rename(id, name.asText(), SessionUtils.getUserId()); + public void rename(@PathVariable String id, @RequestBody Object name) { + apiReportService.rename(id, name.toString(), SessionUtils.getUserId()); } @GetMapping("/delete/{id}")