|
|
|
@ -264,6 +264,13 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
|
account.put("client_id", client.getIntValue("client_id"));
|
|
|
|
|
account.put("display_name", "Mock User");
|
|
|
|
|
account.put("role", 1);
|
|
|
|
|
|
|
|
|
|
List<JSONObject> funcs = permissionClientModulesService.listValidByClientId(account.getIntValue("client_id"));
|
|
|
|
|
List<String> funcIds = new ArrayList<>();
|
|
|
|
|
for (JSONObject func : funcs) {
|
|
|
|
|
funcIds.add(func.getString("module_id"));
|
|
|
|
|
}
|
|
|
|
|
account.put("available_module_ids", funcIds);
|
|
|
|
|
return account;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|