|
@@ -77,17 +77,17 @@ public class PangolinController {
|
|
return pangolinChannelService.getListByUserId(userId);
|
|
return pangolinChannelService.getListByUserId(userId);
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping("api/user/list")
|
|
|
|
- public Map<String, Object> userList() {
|
|
|
|
- LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
|
- String userId = user.getId();
|
|
|
|
-// String userId = "6b4c821adc414dc8b7718ab63ccbfcaf";
|
|
|
|
- String roleCode = sysRoleService.getRoleCodeByUserId(userId);
|
|
|
|
- if(null!=roleCode&&(roleCode.equals("admin"))){
|
|
|
|
- userId = null;
|
|
|
|
- }
|
|
|
|
- return bindAccountLoginService.getListByUserId(userId);
|
|
|
|
- }
|
|
|
|
|
|
+// @PostMapping("api/user/list")
|
|
|
|
+// public Map<String, Object> userList() {
|
|
|
|
+// LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
|
+// String userId = user.getId();
|
|
|
|
+//// String userId = "6b4c821adc414dc8b7718ab63ccbfcaf";
|
|
|
|
+// String roleCode = sysRoleService.getRoleCodeByUserId(userId);
|
|
|
|
+// if(null!=roleCode&&(roleCode.equals("admin"))){
|
|
|
|
+// userId = null;
|
|
|
|
+// }
|
|
|
|
+// return bindAccountLoginService.getListByUserId(userId);
|
|
|
|
+// }
|
|
|
|
|
|
@PostMapping("api/app/list")
|
|
@PostMapping("api/app/list")
|
|
public Map<String, Object> appList(@RequestBody JSONObject data) {
|
|
public Map<String, Object> appList(@RequestBody JSONObject data) {
|