Newer
Older
import { HttpClient } from "@angular/common/http";
import {Observable} from "rxjs/Rx";
import { Injectable } from '@angular/core';
import {CommonService} from '../shared/common/common.service';
constructor(private http: HttpClient,private commonSer:CommonService) {
return this.http.get(SERVER_API_URL_coms + '/role/getAllRole');
return this.http.post(SERVER_API_URL_coms + '/role/updateRole',data);
return this.http.post(SERVER_API_URL_coms + '/role/createRole',data);
return this.http.get(SERVER_API_URL_coms + '/role/deleteRoleById?' +this.commonSer.toQuery(params));
return this.http.post(SERVER_API_URL_coms + '/user/findUsers',data);
return this.http.delete(SERVER_API_URL_coms + '/user/'+ params);
return this.http.get(SERVER_API_URL_coms + '/organization/getAll',);
return this.http.get(SERVER_API_URL_coms + '/organization/updateOrganization',);
return this.http.post(SERVER_API_URL_coms + '/organization/createOrganization',data);
return this.http.get(SERVER_API_URL_coms + '/separationConfig/getSeparationConfig',);
return this.http.get(SERVER_API_URL_coms + '/log?'+this.commonSer.toQuery(data));
return this.http.post(SERVER_API_URL_coms + '/role/batchGrantUserToRole',data);
return this.http.post(SERVER_API_URL_coms + '/role/batchGrantRoleToUser',data);
return this.http.get(SERVER_API_URL_coms + '/approval/separationPowerStatus');
return this.http.post(SERVER_API_URL_coms + '/separationConfig/updateValue',data);
return this.http.get(SERVER_API_URL_coms + '/role/currentUserRoles');
return this.http.get(SERVER_API_URL_coms + '/user/roleList?'+this.commonSer.toQuery(data) );
//获取当前安全管理员已审批记录
approveListSafeManager(data): Observable<any>{
return this.http.get(SERVER_API_URL_coms + '/approval/approveListSafeManager?'+this.commonSer.toQuery(data) );
}
//获取当前安全管理员未审批记录
unapproveListSafeManager(data): Observable<any>{
return this.http.get(SERVER_API_URL_coms + '/approval/unapproveListSafeManager?'+this.commonSer.toQuery(data) );
}
//获取当前系统管理员的已审批记录
approveListSystemManager(data): Observable<any>{
return this.http.get(SERVER_API_URL_coms + '/approval/approveListSystemManager?'+this.commonSer.toQuery(data) );
}
//获取当前系统管理员的未审批记录
unApproveListSystemManager(data): Observable<any>{
return this.http.get(SERVER_API_URL_coms + '/approval/unApproveListSystemManager?'+this.commonSer.toQuery(data) );
return this.http.post(SERVER_API_URL_coms + '/approval/pass', data);
return this.http.post(SERVER_API_URL_coms + '/approval/reject', data);
return this.http.post(SERVER_API_URL_coms + '/approval/remove', data);
return this.http.get(SERVER_API_URL_coms + '/approval/approveList');
return this.http.get(SERVER_API_URL_coms + '/approval/unApproveList' );
return this.http.post(SERVER_API_URL_coms + '/modifyPassword',data );