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
parent 953a764356
commit ba96707b95

View File

@ -124,7 +124,7 @@ public class ApiDefinitionController {
@Operation(summary = "接口测试-接口管理-添加接口定义")
@RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_ADD)
@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)
public ApiDefinition add(@Validated @RequestBody ApiDefinitionAddRequest request) {
return apiDefinitionService.create(request, SessionUtils.getUserId());