Commit 489f5cd5c046d207957a4689562dafd2ac7f8bd2
1 parent
a6e51311
Exists in
master
楼宇通话操作接口
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
springboot/src/main/java/com/sincre/springboot/controller/Yinshi/DeviceControl.java
... | ... | @@ -43,7 +43,7 @@ public class DeviceControl { |
43 | 43 | @ApiOperation(value = "该接口用于楼宇可视对讲设备通话操作") |
44 | 44 | @ApiImplicitParams({ |
45 | 45 | @ApiImplicitParam(name = "deviceSerial", value = "设备序列号", required = true), |
46 | - @ApiImplicitParam(name = "type",value = "操作类型:2-接听,3-拒接, 4-响铃超时,5-挂断,6-被叫正在通话中",required = true) | |
46 | + @ApiImplicitParam(name = "type",value = "操作类型:2-接听,3-拒接, 4-响铃超时,5-挂断,6-被叫正在通话中",dataType = "Integer",required = true) | |
47 | 47 | }) |
48 | 48 | @GetMapping("setDeviceCall") |
49 | 49 | public ServerResponse setDeviceCall(@RequestParam String deviceSerial,@RequestParam Integer type) { |
... | ... | @@ -52,6 +52,7 @@ public class DeviceControl { |
52 | 52 | Map<String, Object> map = new HashMap<>(); |
53 | 53 | map.put("accessToken", YinShiServiceConfig.AccessToken); |
54 | 54 | map.put("deviceSerial", deviceSerial); |
55 | + map.put("type",type); | |
55 | 56 | String result = ApiHelper.doPost(url, new HashMap<String, String>(), map); |
56 | 57 | |
57 | 58 | YinShiResResult yinShiResResult = JSON.parseObject(result,YinShiResResult.class); | ... | ... |