Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { HttpClient } from "@angular/common/http";
import {Observable} from "rxjs/Rx";
import { Injectable } from '@angular/core';
import {SERVER_API_URL} from "../app.constants";
@Injectable()
export class SystemService {
constructor(private http: HttpClient) {
}
//角色列表
role(): Observable<any>{
return this.http.get(SERVER_API_URL + '/role');
}
//编辑角色
editRole(data): Observable<any>{
return this.http.put(SERVER_API_URL + '/role',data);
}
addRole(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/role',data);
}
//用户列表
user(data): Observable<any>{
return this.http.get(SERVER_API_URL + '/user',data);
}
//组织结构列表
organization(): Observable<any>{
return this.http.get(SERVER_API_URL + '/organization',);
}
//创建组织结构
createOrg(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/organization',data);
}
//三员分立列表
separationPowers(): Observable<any>{
return this.http.get(SERVER_API_URL + '/approval/separationPowers',);
}
}