Commit eb27587b by guo_minglei@163.com

修改返回参数

parent 2fe27ea4
package com.byit.api; package com.byit.api;
import com.byit.dto.web.ResponseResult;
import com.byit.service.ApiNodeService; import com.byit.service.ApiNodeService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate;
...@@ -21,9 +22,9 @@ public class ApiNodeController { ...@@ -21,9 +22,9 @@ public class ApiNodeController {
private StringRedisTemplate stringRedisTemplate; private StringRedisTemplate stringRedisTemplate;
@PostMapping("runNode") @PostMapping("runNode")
public String runNode(String param){ public ResponseResult runNode(String param){
String monitorKey = apiNodeService.runNode(param); String monitorKey = apiNodeService.runNode(param);
return monitorKey; return ResponseResult.ok(monitorKey);
} }
} }
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