|
@@ -30,8 +30,8 @@ public class AutoDoorTestController {
|
|
|
*/
|
|
|
@ApiOperation("发送开门")
|
|
|
@PostMapping("/sendOpen")
|
|
|
- public Boolean sendOpen(Boolean con) {
|
|
|
- return autoDoorClient.sendOpen(con);
|
|
|
+ public Boolean sendOpen(String con) {
|
|
|
+ return autoDoorClient.sendOpen(AutoDoorClient.AUTO_DOOR_NO.getByValue(con));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -41,8 +41,8 @@ public class AutoDoorTestController {
|
|
|
*/
|
|
|
@ApiOperation("发送关门")
|
|
|
@PostMapping("/sendClose")
|
|
|
- public Boolean sendClose(Boolean con) {
|
|
|
- return autoDoorClient.sendClose(con);
|
|
|
+ public Boolean sendClose(String con) {
|
|
|
+ return autoDoorClient.sendClose(AutoDoorClient.AUTO_DOOR_NO.getByValue(con));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -52,8 +52,8 @@ public class AutoDoorTestController {
|
|
|
*/
|
|
|
@ApiOperation("查询开门状态")
|
|
|
@PostMapping("/readOpenSts")
|
|
|
- public AjaxResult readOpenSts(Boolean con) {
|
|
|
- return autoDoorClient.readOpenSts(con);
|
|
|
+ public AjaxResult readOpenSts(String con) {
|
|
|
+ return autoDoorClient.readOpenSts(AutoDoorClient.AUTO_DOOR_NO.getByValue(con));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -63,8 +63,8 @@ public class AutoDoorTestController {
|
|
|
*/
|
|
|
@ApiOperation("查询关门状态")
|
|
|
@PostMapping("/readCloseSts")
|
|
|
- public AjaxResult readCloseSts(Boolean con) {
|
|
|
- return autoDoorClient.readCloseSts(con);
|
|
|
+ public AjaxResult readCloseSts(String con) {
|
|
|
+ return autoDoorClient.readCloseSts(AutoDoorClient.AUTO_DOOR_NO.getByValue(con));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -74,8 +74,8 @@ public class AutoDoorTestController {
|
|
|
*/
|
|
|
@ApiOperation("发送开门清除标记")
|
|
|
@PostMapping("/sendOpenClear")
|
|
|
- public Boolean sendOpenClear(Boolean con) {
|
|
|
- return autoDoorClient.sendOpenClear(con);
|
|
|
+ public Boolean sendOpenClear(String con) {
|
|
|
+ return autoDoorClient.sendOpenClear(AutoDoorClient.AUTO_DOOR_NO.getByValue(con));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -85,8 +85,8 @@ public class AutoDoorTestController {
|
|
|
*/
|
|
|
@ApiOperation("发送关门清除标记")
|
|
|
@PostMapping("/sendCloseClear")
|
|
|
- public Boolean sendCloseClear(Boolean con) {
|
|
|
- return autoDoorClient.sendCloseClear(con);
|
|
|
+ public Boolean sendCloseClear(String con) {
|
|
|
+ return autoDoorClient.sendCloseClear(AutoDoorClient.AUTO_DOOR_NO.getByValue(con));
|
|
|
}
|
|
|
|
|
|
}
|