package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.service.SNMPConnectService;
|
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.io.IOException;
|
|
@RequestMapping("test")
|
@RestController
|
public class SNMPTestController {
|
|
@Resource
|
private SNMPConnectService service;
|
|
@GetMapping("getData")
|
public Response getData(){
|
return service.getData();
|
}
|
|
@GetMapping("getSignal")
|
public Response getSignal(){
|
return service.getSignal();
|
}
|
|
@GetMapping("getAlarm")
|
public Response getAlarm(){
|
return service.getAlarm();
|
}
|
|
}
|