From 24fd4ac01b448c2dab5dbcc1f9a641a38fc783e7 Mon Sep 17 00:00:00 2001 From: whycxzp <perryhsu@163.com> Date: 星期一, 26 七月 2021 11:30:07 +0800 Subject: [PATCH] 更新演示接口 --- src/main/java/com/whyc/controller/AFERectifierController.java | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/whyc/controller/AFERectifierController.java b/src/main/java/com/whyc/controller/AFERectifierController.java index 907ee2c..d6d84f0 100644 --- a/src/main/java/com/whyc/controller/AFERectifierController.java +++ b/src/main/java/com/whyc/controller/AFERectifierController.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.*; @RestController @RequestMapping("afeRectifier") @@ -34,6 +31,18 @@ return service.getInfoByDevId(devId); } + @PutMapping("updateState1") + @ApiOperation(value = "鏇存柊鏁存祦鐘舵��-婕旂ず浣跨敤") + public Response updateState1(@RequestParam int devId,@RequestParam int rectifierRun){ + return service.updateState1(devId,rectifierRun); + } + + @PutMapping("updateState2") + @ApiOperation(value = "鏇存柊閫嗗彉鐘舵��-婕旂ず浣跨敤") + public Response updateState2(@RequestParam int devId,@RequestParam int invertRun){ + return service.updateState2(devId,invertRun); + } + /** * ======History====== * 鍘嗗彶鏌ヨ鏃�,鍥犱负鍘嗗彶璁板綍鏄寜鐓ф棩鏈熷垎琛ㄧ殑,濡傛灉鏌ヨ鎵�鏈夌殑鏃ユ湡琛�(union)鍚庡啀鍒嗛〉,浼氬鑷撮�熷害鏋佹參,鏁呮煡璇㈡寜鐓у崟涓棩鏈熸煡璇� -- Gitblit v1.9.1