Commit 6aa0049f by guominglei

修改返回实体类

parent 317a182f
package com.byit.api;
import com.byit.dto.web.ResponseResult;
import com.byit.model.RunRecording;
import com.byit.model.vo.RunRecordingVo;
import com.byit.service.ApiFlowService;
......@@ -32,9 +33,9 @@ public class ApiFlowController {
@PostMapping("publish")
@ApiOperation("发布工作流,并开始调度")
public String publishFlow(String param) throws Exception {
public ResponseResult publishFlow(String param) throws Exception {
apiFlowService.publishFlow(param);
return "SUCCESS";
return ResponseResult.ok("SUCCESS");
}
@PostMapping("delete")
......
package com.byit.api;
import com.byit.dto.web.ResponseResult;
import com.byit.service.ApiWorkspaceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
......@@ -24,9 +25,9 @@ public class ApiWorkspaceController {
@PostMapping("add")
@ApiOperation("新建工作空间")
public String add(String workspaceName){
public ResponseResult add(String workspaceName){
workspaceService.add(workspaceName);
return "SUCCESS";
return ResponseResult.ok("SUCCESS");
}
@PostMapping("exist")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment