|
|
@@ -3,10 +3,7 @@ package com.zhongshu.iot.server.core.controller.hardware;
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
-import com.zhongshu.iot.client.model.mqtt.GateWayUserInfoModel;
|
|
|
-import com.zhongshu.iot.client.model.mqtt.GateWayUserInfoNameParam;
|
|
|
-import com.zhongshu.iot.client.model.mqtt.GateWayUserInfoParam;
|
|
|
-import com.zhongshu.iot.client.model.mqtt.GateWayUserInfoSearchParam;
|
|
|
+import com.zhongshu.iot.client.model.mqtt.*;
|
|
|
import com.zhongshu.iot.server.core.service.device.GateWayUserInfoService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
@@ -44,6 +41,13 @@ public class GateWayUserInfoController {
|
|
|
return gateWayUserInfoService.createUser(param);
|
|
|
}
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "编辑连接用户信息")
|
|
|
+ @RequestMapping(value = "update", method = {RequestMethod.POST})
|
|
|
+ public ResultContent update(@RequestBody GateWayUserInfoUpdateParam param) {
|
|
|
+ return gateWayUserInfoService.update(param);
|
|
|
+ }
|
|
|
+
|
|
|
// @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
// @Operation(summary = "添加连接用户")
|
|
|
// @RequestMapping(value = "addDeviceInfo", method = {RequestMethod.POST})
|