|
|
@@ -2,6 +2,7 @@ package com.zhongshu.iot.server.core.controller.iot;
|
|
|
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
+import com.github.microservice.models.baseParam.IDParam;
|
|
|
import com.github.microservice.models.baseParam.NameModel;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
import com.github.microservice.types.FunctionType;
|
|
|
@@ -159,4 +160,11 @@ public class IotController {
|
|
|
return iotService.getDeviceIotMain(param.getDeviceId(), FunctionType.Server);
|
|
|
}
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "得到物模型属性值的最新值")
|
|
|
+ @RequestMapping(value = "getPropertyValueByIotMainId", method = {RequestMethod.POST})
|
|
|
+ public ResultContent getPropertyValueByIotMainId(@RequestBody IDParam param) {
|
|
|
+ return iotService.getPropertyValueByIotMainId(param.getId());
|
|
|
+ }
|
|
|
+
|
|
|
}
|