whycxzp
2021-07-26 24fd4ac01b448c2dab5dbcc1f9a641a38fc783e7
src/main/java/com/whyc/controller/RectifierPowerController.java
@@ -9,10 +9,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
@@ -37,6 +34,12 @@
        return service.getInfoByDevId(devId);
    }
    @PutMapping("updateState")
    @ApiOperation(value = "更新状态-演示使用")
    public Response updateState(@RequestParam int devId,@RequestParam int rectifierPowerState){
        return service.updatePowerState(devId,rectifierPowerState);
    }
    @GetMapping("field")
    @ApiOperation(value = "查询告警阈值字段")
    public Response<Map<String, List>> getField(){