package com.cloud.control.controller; import com.cloud.control.service.ClusterService; import com.cloud.model.common.Result; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @Slf4j @Api(value = "ClusterController", description = "集群管理") @RequestMapping("/data/api-d/cluster") @RestController public class ClusterController { @Autowired private ClusterService clusterService; @RequestMapping("/getClusterDeviceTree") @ApiOperation(value = "获取集群设备树信息", notes = "获取集群设备树信息", httpMethod = "POST", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE) public Result getClusterDeviceTree(){ return clusterService.getClusterDeviceTree(); } }