调用权限系统接口添加配置项

develop
bayuzhen 2024-08-30 00:17:12 +08:00
parent f2861c2712
commit a71aa1c38b
1 changed files with 6 additions and 2 deletions

View File

@ -16,14 +16,18 @@ public class QxUtils {
private String queryAppUrl;
@Value("${qx.queryAppModulesUrl:http://117.47.88.120:8081/authority/api/v1/appModules}")
private String queryAppModulesUrl;
@Value("${qx.appId:portal}")
private String appId;
@Value("${qx.appName:portal}")
private String appName;
public String queryApp(String userToken, String userId){
QxReqVo qxReqVo = new QxReqVo(userToken, userId,"portal","portal","","");
QxReqVo qxReqVo = new QxReqVo(userToken, userId,appId,appName,"","");
return call(queryAppUrl,qxReqVo);
}
public String queryAppModules(String userToken, String userId){
QxReqVo qxReqVo = new QxReqVo(userToken, userId,"portal","portal","","");
QxReqVo qxReqVo = new QxReqVo(userToken, userId,appId,appName,"","");
return call(queryAppUrl,qxReqVo);
}