wen-hemin commented on a change in pull request #5740:
URL: https://github.com/apache/dolphinscheduler/pull/5740#discussion_r663312716



##########
File path: 
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProcessDefinitionController.java
##########
@@ -136,25 +136,25 @@ public Result createProcessDefinition(@ApiIgnore 
@RequestAttribute(value = Const
      *
      * @param loginUser login user
      * @param projectName project name
-     * @param processDefinitionIds process definition ids
-     * @param targetProjectId target project id
+     * @param processDefinitionCodes process definition codes
+     * @param targetProjectName target project name
      * @return copy result code
      */
-    @ApiOperation(value = "copyProcessDefinition", notes = 
"COPY_PROCESS_DEFINITION_NOTES")
+    @ApiOperation(value = "copy", notes = "COPY_PROCESS_DEFINITION_NOTES")
     @ApiImplicitParams({
-            @ApiImplicitParam(name = "processDefinitionIds", value = 
"PROCESS_DEFINITION_IDS", required = true, dataType = "String", example = 
"3,4"),
-            @ApiImplicitParam(name = "targetProjectId", value = 
"TARGET_PROJECT_ID", required = true, dataType = "Int", example = "10")
+            @ApiImplicitParam(name = "processDefinitionCodes", value = 
"PROCESS_DEFINITION_CODES", required = true, dataType = "String", example = 
"3,4"),
+            @ApiImplicitParam(name = "targetProjectName", value = 
"TARGET_PROJECT_NAME", required = true, dataType = "String", example = "ddd")
     })
     @PostMapping(value = "/copy")
     @ResponseStatus(HttpStatus.OK)
     @ApiException(BATCH_COPY_PROCESS_DEFINITION_ERROR)
     @AccessLogAnnotation(ignoreRequestArgs = "loginUser")
     public Result copyProcessDefinition(@ApiIgnore @RequestAttribute(value = 
Constants.SESSION_USER) User loginUser,
                                         @ApiParam(name = "projectName", value 
= "PROJECT_NAME", required = true) @PathVariable String projectName,
-                                        @RequestParam(value = 
"processDefinitionIds", required = true) String processDefinitionIds,
-                                        @RequestParam(value = 
"targetProjectId", required = true) int targetProjectId) {
+                                        @RequestParam(value = 
"processDefinitionCodes", required = true) String processDefinitionCodes,
+                                        @RequestParam(value = 
"targetProjectName", required = true) String targetProjectName) {

Review comment:
       Is targetprojectcode better?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to