[ server] [ agent ] - 完成核心信息,关机的功能
This commit is contained in:
@@ -4,6 +4,7 @@ import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.wdd.common.beans.response.R;
|
||||
import io.wdd.rpc.agent.OctopusAgentService;
|
||||
import io.wdd.server.beans.vo.ServerInfoVO;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
@@ -26,4 +27,12 @@ public class AgentController {
|
||||
return R.ok(octopusAgentService.getAllAgentVersion());
|
||||
}
|
||||
|
||||
@GetMapping("/coreInfo")
|
||||
@ApiOperation("获取所有OctopusAgent的核心信息")
|
||||
public R<Map<String, ServerInfoVO>> getAllAgentCoreInfo(){
|
||||
|
||||
return R.ok(octopusAgentService.getAllAgentCoreInfo());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user