|
@@ -6,42 +6,42 @@ import {INodeList, NodeAddParam, NodeinfoParam, NodeItme, NodeItmeData, TaskNode
|
|
|
// 用户登录
|
|
|
export const nodeReqUse = (params: NodeinfoParam) => {
|
|
|
// 返回的数据格式可以和服务端约定
|
|
|
- return httprequest.get<INodeList>('api/api/v1/node/all', params);
|
|
|
+ return httprequest.get<INodeList>('api/v1/node/all', params);
|
|
|
}
|
|
|
|
|
|
// 添加节点
|
|
|
export const nodeAddReqUse = (params : any) => {
|
|
|
- return httprequest.post<any>("api/api/v1/node/add",params)
|
|
|
+ return httprequest.post<any>("api/v1/node/add",params)
|
|
|
}
|
|
|
|
|
|
// 删除节点
|
|
|
export const delNodeReqUse = (params : any) => {
|
|
|
- return httprequest.post<any>("api/api/v1/node/del",params)
|
|
|
+ return httprequest.post<any>("api/v1/node/del",params)
|
|
|
}
|
|
|
|
|
|
|
|
|
// 编辑节点
|
|
|
export const editNodeReqUse = (params : any) => {
|
|
|
- return httprequest.post<any>("api/api/v1/node/edit",params)
|
|
|
+ return httprequest.post<any>("api/v1/node/edit",params)
|
|
|
}
|
|
|
|
|
|
|
|
|
// 开启Ping任务
|
|
|
export const startNodeReqUse = (params : any) => {
|
|
|
- return httprequest.post<TaskNode>("api/api/v1/node/start",params)
|
|
|
+ return httprequest.post<TaskNode>("api/v1/node/start",params)
|
|
|
}
|
|
|
|
|
|
// 停止任务
|
|
|
export const stopNodeReqUse = (params : any) => {
|
|
|
- return httprequest.post<any>("api/api/v1/node/stop",params)
|
|
|
+ return httprequest.post<any>("api/v1/node/stop",params)
|
|
|
}
|
|
|
|
|
|
// 查看任务状态
|
|
|
export const taskNodeReqUse = (params : any) => {
|
|
|
- return httprequest.get<TaskNode>("api/api/v1/node/task",params)
|
|
|
+ return httprequest.get<TaskNode>("api/v1/node/task",params)
|
|
|
}
|
|
|
|
|
|
// 查看节点PING状态
|
|
|
export const nodeStatusReqUse = (params : any) => {
|
|
|
- return httprequest.get<NodeItmeData>("api/api/v1/node/nodestatus",params)
|
|
|
+ return httprequest.get<NodeItmeData>("api/v1/node/nodestatus",params)
|
|
|
}
|