Przeglądaj źródła

优化iot下发设备控制命令和eg下发设备控制命令接口,增加设备所属类型的默认传值

james 1 tydzień temu
rodzic
commit
07aa229a1a

+ 1 - 1
service-iot/service-iot-biz/src/main/java/com/usky/iot/controller/web/DeviceHttpController.java

@@ -69,7 +69,7 @@ public class DeviceHttpController {
                                                  @RequestParam(value = "domain",required = false) String domain,
                                                  @RequestParam(value = "userId",required = false) Long userId,
                                                  @RequestParam(value = "userName",required = false) String userName,
-                                                 @RequestParam(value = "categoryType") Integer categoryType,
+                                                 @RequestParam(value = "categoryType",required = false , defaultValue = "1") Integer categoryType,
                                                  @RequestParam(value = "gatewayUuid",required = false) String gatewayUuid){
         return ApiResult.success(dmpDeviceInfoService.control(productCode,deviceUuid,commandCode,commandValue,domain,userId,userName,categoryType,gatewayUuid));
     }