|
|
|
@ -30,7 +30,8 @@ public class IotController {
|
|
|
|
|
@ApiOperation(value = "获取单个设备信息")
|
|
|
|
|
@GetMapping(value = "/devices")
|
|
|
|
|
public Result<?> devices(@RequestParam(value = "serial",defaultValue = "")String serial,@RequestParam(value = "productId",defaultValue = "")String productId){
|
|
|
|
|
AssertUtils.notEmpty(serial,"请输入-[serial]");AssertUtils.notEmpty(productId,"请输入-[productId]");
|
|
|
|
|
AssertUtils.notEmpty(serial,"请输入-[serial]");
|
|
|
|
|
//AssertUtils.notEmpty(productId,"请输入-[productId]");
|
|
|
|
|
JSONObject requestBody=new JSONObject();
|
|
|
|
|
requestBody.put("serial",serial);
|
|
|
|
|
requestBody.put("productId",productId);
|
|
|
|
|