mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 12:03:05 +08:00
refactor(xpack): 权限管理交互优化
This commit is contained in:
parent
c96c84e0c4
commit
ce5f95d791
@ -8,6 +8,7 @@ import io.dataease.commons.utils.DeLogUtils;
|
|||||||
import io.dataease.controller.handler.annotation.I18n;
|
import io.dataease.controller.handler.annotation.I18n;
|
||||||
import io.dataease.dto.SysLogDTO;
|
import io.dataease.dto.SysLogDTO;
|
||||||
import io.dataease.listener.util.CacheUtils;
|
import io.dataease.listener.util.CacheUtils;
|
||||||
|
import io.dataease.plugins.common.dto.DatasourceBaseType;
|
||||||
import io.dataease.plugins.config.SpringContextUtil;
|
import io.dataease.plugins.config.SpringContextUtil;
|
||||||
import io.dataease.plugins.xpack.auth.dto.request.XpackBaseTreeRequest;
|
import io.dataease.plugins.xpack.auth.dto.request.XpackBaseTreeRequest;
|
||||||
import io.dataease.plugins.xpack.auth.dto.request.XpackSysAuthRequest;
|
import io.dataease.plugins.xpack.auth.dto.request.XpackSysAuthRequest;
|
||||||
@ -145,4 +146,10 @@ public class XAuthServer {
|
|||||||
return authTargetType + "_" + authSourceType;
|
return authTargetType + "_" + authSourceType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getDatasourceTypes")
|
||||||
|
public List<DatasourceBaseType> getDatasourceTypes(){
|
||||||
|
AuthXpackService sysAuthService = SpringContextUtil.getBean(AuthXpackService.class);
|
||||||
|
return sysAuthService.getDatasourceTypes();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user