You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.zc.business.controller;
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.zc.business.domain.DcSwitch;
|
|
|
|
import com.zc.business.service.DcSwitchService;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 交换机Controller
|
|
|
|
*
|
|
|
|
* @author wangjiabao
|
|
|
|
*/
|
|
|
|
@Api(tags = {"交换机"})
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/business/switch")
|
|
|
|
public class DcSwitchController extends BaseController {
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
private DcSwitchService dcSwitchService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询交换机
|
|
|
|
*/
|
|
|
|
@ApiOperation("查询交换机")
|
|
|
|
@GetMapping("/query")
|
|
|
|
public AjaxResult getSwitchList(DcSwitch dcSwitch) {
|
|
|
|
return AjaxResult.success(dcSwitchService.getSwitchList(dcSwitch));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据设备列表查询设备
|
|
|
|
*/
|
|
|
|
@ApiOperation("根据设备列表查询设备")
|
|
|
|
@GetMapping("/deviceList/{deviceList}")
|
|
|
|
public AjaxResult getDeviceList(@PathVariable String deviceList) {
|
|
|
|
return AjaxResult.success(dcSwitchService.getDeviceList(deviceList));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询所有数据
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@GetMapping("/list")
|
|
|
|
public AjaxResult getSwitchListAll() {
|
|
|
|
return AjaxResult.success(dcSwitchService.getSwitchListAll());
|
|
|
|
}
|
|
|
|
}
|