package io.wdd.rpc.controller; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.wdd.common.beans.response.R; import io.wdd.rpc.agent.OctopusAgentService; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.Map; @RestController @RequestMapping("/octopus/server/agent") @Api("处理Agent核心内容的Controller") public class AgentController { @Resource OctopusAgentService octopusAgentService; @GetMapping("/version") @ApiOperation("获取所有OctopusAgent的版本") public R> getAllAgentVersion(){ return R.ok(octopusAgentService.getAllAgentVersion()); } }