|
@@ -17,6 +17,9 @@ import java.util.HashSet;
|
|
|
import java.util.Set;
|
|
|
|
|
|
/**
|
|
|
+ * 普适型设备
|
|
|
+ * 微信小程序 端接口
|
|
|
+ *
|
|
|
* @author yang xiao kun
|
|
|
* create on 2021/7/16
|
|
|
*/
|
|
@@ -31,7 +34,7 @@ public class UbiWxController extends BaseController {
|
|
|
private IUbiInfoStateService ubiInfoStateService;
|
|
|
|
|
|
/**
|
|
|
- * 查看用户拥有权限的设备组
|
|
|
+ * 查看用户拥有权限的设备组列表
|
|
|
*/
|
|
|
@GetMapping("getOwnGroups.do")
|
|
|
public ServerResponse getOwnGroups() {
|
|
@@ -50,8 +53,8 @@ public class UbiWxController extends BaseController {
|
|
|
/**
|
|
|
* 通过用户ID分页查询该用户拥有权限的设备列表
|
|
|
*/
|
|
|
- @GetMapping("getDeviceListByGroupId.do")
|
|
|
- public ServerResponse getDeviceListByGroupId(PageIO io, String group) {
|
|
|
+ @GetMapping("getDeviceList.do")
|
|
|
+ public ServerResponse getDeviceList(PageIO io, String group) {
|
|
|
Set<String> groupIds = new HashSet<>(userPrivilegeService.ownGroupIds(userId()));
|
|
|
if (!groupIds.contains(group)) return ServerResponse.warning("无权限");
|
|
|
return ServerResponse.success(ubiInfoStateService.listPageWx(io, group));
|