enc-manager
Version:
enc-manager 核心组件.
30 lines (25 loc) • 858 B
JavaScript
import AjmHttp from 'enc-framework/core/utils/ajm-http';
import AjmConfig from 'enc-framework/core/utils/ajm-config';
// http请求对象
let $http = new AjmHttp({
contextPath: AjmConfig.get("MANAGER_CONTEXT_PATH")
}).getHttpClient();
//授权服务
let authService = {
// 查询授权信息
findAuthorizationVO() {
return $http.get('/api/authorization/findAuthorizationVO').then(res => res.data);
},
//查询功能VO
findFunctionVOList() {
return $http.get('/api/authorization/findFunctionVOList').then(res => res.data);
},
//激活授权
enableAuthorizationInfo(params) {
if (!params) {
params = {};
}
return $http.post("/api/authorization/enableAuthorizationInfo", params).then(res => res.data);
},
};
export default authService;