fix(接口测试): 保存接口定义报错

--bug=1049107 --user=陈建星 【接口测试】接口定义-新建api报错-新建失败 https://www.tapd.cn/55049933/s/1612525
This commit is contained in:
AgAngle 2024-11-19 18:45:04 +08:00 committed by Craftsman
parent 49e605e180
commit 81ff2a8f9b
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public class ApiDefinitionController {
@Operation(summary = "接口测试-接口管理-添加接口定义") @Operation(summary = "接口测试-接口管理-添加接口定义")
@RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_ADD) @RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_ADD)
@Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#request)", msClass = ApiDefinitionLogService.class) @Log(type = OperationLogType.ADD, expression = "#msClass.addLog(#request)", msClass = ApiDefinitionLogService.class)
@CheckOwner(resourceId = "#request.getProjectId()s", resourceType = "project") @CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
@SendNotice(taskType = NoticeConstants.TaskType.API_DEFINITION_TASK, event = NoticeConstants.Event.CREATE, target = "#targetClass.getApiDTO(#request)", targetClass = ApiDefinitionNoticeService.class) @SendNotice(taskType = NoticeConstants.TaskType.API_DEFINITION_TASK, event = NoticeConstants.Event.CREATE, target = "#targetClass.getApiDTO(#request)", targetClass = ApiDefinitionNoticeService.class)
public ApiDefinition add(@Validated @RequestBody ApiDefinitionAddRequest request) { public ApiDefinition add(@Validated @RequestBody ApiDefinitionAddRequest request) {
return apiDefinitionService.create(request, SessionUtils.getUserId()); return apiDefinitionService.create(request, SessionUtils.getUserId());