|
16 | 16 | */
|
17 | 17 |
|
18 | 18 | import http from "@/utils/http";
|
19 |
| - |
20 | 19 | // Create a Coordinator information interface
|
21 |
| -export function getCoordinatorServerInfo(params){ |
22 |
| - return http.get('/coordinator/info', params,{}) |
| 20 | +export function getCoordinatorServerInfo(params,headers) { |
| 21 | + return http.get('/coordinator/info', params, headers, 0) |
23 | 22 | }
|
24 | 23 |
|
25 | 24 | // Create a coordinator configuration file interface
|
26 |
| -export function getCoordinatorConf(params){ |
27 |
| - return http.get('/coordinator/conf', params,{}) |
| 25 | +export function getCoordinatorConf(params,headers) { |
| 26 | + return http.get('/coordinator/conf', params, headers, 0) |
28 | 27 | }
|
29 | 28 |
|
30 | 29 | // Create an interface for the total number of nodes
|
31 |
| -export function getShufflegetStatusTotal(params){ |
32 |
| - return http.get('/server/nodes/summary', params,{}) |
| 30 | +export function getShufflegetStatusTotal(params,headers) { |
| 31 | + return http.get('/server/nodes/summary', params, headers, 0) |
33 | 32 | }
|
34 | 33 |
|
35 | 34 | // Create an interface for activeNodes
|
36 |
| -export function getShuffleActiveNodes(params){ |
37 |
| - return http.get('/server/nodes?status=active', params,{}) |
| 35 | +export function getShuffleActiveNodes(params,headers) { |
| 36 | + return http.get('/server/nodes?status=active', params, headers, 0) |
38 | 37 | }
|
39 | 38 |
|
40 | 39 | // Create an interface for lostNodes
|
41 |
| -export function getShuffleLostList(params){ |
42 |
| - return http.get('/server/nodes?status=lost', params,{}) |
| 40 | +export function getShuffleLostList(params,headers) { |
| 41 | + return http.get('/server/nodes?status=lost', params, headers, 0) |
43 | 42 | }
|
44 | 43 |
|
45 | 44 | // Create an interface for unhealthyNodes
|
46 |
| -export function getShuffleUnhealthyList(params){ |
47 |
| - return http.get('/server/nodes?status=unhealthy', params,{}) |
| 45 | +export function getShuffleUnhealthyList(params,headers) { |
| 46 | + return http.get('/server/nodes?status=unhealthy', params, headers, 0) |
48 | 47 | }
|
49 | 48 |
|
50 | 49 | // Create an interface for decommissioningNodes
|
51 |
| -export function getShuffleDecommissioningList(params){ |
52 |
| - return http.get('/server/nodes?status=decommissioning', params,{}) |
| 50 | +export function getShuffleDecommissioningList(params,headers) { |
| 51 | + return http.get('/server/nodes?status=decommissioning', params, headers, 0) |
53 | 52 | }
|
54 | 53 |
|
55 | 54 | // Create an interface for decommissionedNodes
|
56 |
| -export function getShuffleDecommissionedList(params){ |
57 |
| - return http.get('/server/nodes?status=decommissioned', params,{}) |
| 55 | +export function getShuffleDecommissionedList(params,headers) { |
| 56 | + return http.get('/server/nodes?status=decommissioned', params, headers, 0) |
58 | 57 | }
|
59 | 58 |
|
60 | 59 | // Create an interface for excludeNodes
|
61 |
| -export function getShuffleExcludeNodes(params){ |
62 |
| - return http.get('/server/nodes?status=excluded', params,{}) |
| 60 | +export function getShuffleExcludeNodes(params,headers) { |
| 61 | + return http.get('/server/nodes?status=excluded', params, headers, 0) |
63 | 62 | }
|
64 | 63 |
|
65 | 64 | // Total number of interfaces for new App
|
66 |
| -export function getAppTotal(params){ |
67 |
| - return http.get('/app/total', params,{}) |
| 65 | +export function getAppTotal(params,headers) { |
| 66 | + return http.get('/app/total', params, headers, 0) |
68 | 67 | }
|
69 | 68 |
|
70 | 69 | // Create an interface for the app basic information list
|
71 |
| -export function getApplicationInfoList(params){ |
72 |
| - return http.get('/app/appInfos', params,{}) |
| 70 | +export function getApplicationInfoList(params,headers) { |
| 71 | + return http.get('/app/appInfos', params, headers, 0) |
73 | 72 | }
|
74 | 73 |
|
75 | 74 | // Create an interface for the number of apps for a user
|
76 |
| -export function getTotalForUser(params){ |
77 |
| - return http.get('/app/userTotal', params,{}) |
| 75 | +export function getTotalForUser(params,headers) { |
| 76 | + return http.get('/app/userTotal', params, headers, 0) |
| 77 | +} |
| 78 | + |
| 79 | +// Obtain the configured coordinator server list |
| 80 | +export function getAllCoordinatorAddrees(params) { |
| 81 | + return http.get('/coordinatorList', params, {}, 1) |
78 | 82 | }
|
0 commit comments