Browse Source

接口优化

liujq 5 years ago
parent
commit
245fbf9902

+ 1 - 1
jetlinks-manager/device-manager/src/main/java/org/jetlinks/community/device/web/DeviceMessageController.java

@@ -117,7 +117,7 @@ public class DeviceMessageController {
     }
     }
 
 
     //设备功能调用
     //设备功能调用
-    @PostMapping("invoked/{deviceId}/functionId/{functionId}")
+    @PostMapping("invoked/{deviceId}/function/{functionId}")
     @SneakyThrows
     @SneakyThrows
     public Flux<?> invokedFunction(@PathVariable String deviceId, @PathVariable String functionId, @RequestBody Map<String, Object> properties) {
     public Flux<?> invokedFunction(@PathVariable String deviceId, @PathVariable String functionId, @RequestBody Map<String, Object> properties) {