liuxiaolong
2019-05-06 1043e7be0b7503d7b0f488dc0d8d11a2b8079dee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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();
    }
}