fix(接口测试): 修复快捷修改报告名称错误的缺陷
--bug=1039663 --user=王孝刚 【接口测试】报告-用例报告-快捷编辑名称提示只支持输入字符串 https://www.tapd.cn/55049933/s/1500279
This commit is contained in:
parent
98905dd20f
commit
99059250b4
|
@ -1,6 +1,5 @@
|
||||||
package io.metersphere.api.controller.definition;
|
package io.metersphere.api.controller.definition;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.node.TextNode;
|
|
||||||
import com.github.pagehelper.Page;
|
import com.github.pagehelper.Page;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import io.metersphere.api.dto.definition.ApiReportBatchRequest;
|
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.ApiReportDetailDTO;
|
||||||
import io.metersphere.api.dto.definition.ApiReportPageRequest;
|
import io.metersphere.api.dto.definition.ApiReportPageRequest;
|
||||||
import io.metersphere.api.dto.report.ApiReportListDTO;
|
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.ApiReportShareService;
|
||||||
import io.metersphere.api.service.definition.ApiReportLogService;
|
import io.metersphere.api.service.definition.ApiReportLogService;
|
||||||
|
import io.metersphere.api.service.definition.ApiReportNoticeService;
|
||||||
import io.metersphere.api.service.definition.ApiReportService;
|
import io.metersphere.api.service.definition.ApiReportService;
|
||||||
import io.metersphere.sdk.constants.PermissionConstants;
|
import io.metersphere.sdk.constants.PermissionConstants;
|
||||||
import io.metersphere.sdk.domain.ShareInfo;
|
import io.metersphere.sdk.domain.ShareInfo;
|
||||||
|
@ -57,8 +56,8 @@ public class ApiReportController {
|
||||||
@CheckOwner(resourceId = "#id", resourceType = "api_report")
|
@CheckOwner(resourceId = "#id", resourceType = "api_report")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_UPDATE)
|
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_UPDATE)
|
||||||
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#id)", msClass = ApiReportLogService.class)
|
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#id)", msClass = ApiReportLogService.class)
|
||||||
public void rename(@PathVariable String id, @RequestBody TextNode name) {
|
public void rename(@PathVariable String id, @RequestBody Object name) {
|
||||||
apiReportService.rename(id, name.asText(), SessionUtils.getUserId());
|
apiReportService.rename(id, name.toString(), SessionUtils.getUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/delete/{id}")
|
@GetMapping("/delete/{id}")
|
||||||
|
|
Loading…
Reference in New Issue