From ec9aac1537b9639896e5319458548fb8911c4d1d Mon Sep 17 00:00:00 2001 From: Gzx1999 Date: Thu, 30 Nov 2023 15:19:14 +0800 Subject: [PATCH] add stop service api --- frontend/src/request/cluster.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/request/cluster.ts b/frontend/src/request/cluster.ts index 725db09..d4f313d 100644 --- a/frontend/src/request/cluster.ts +++ b/frontend/src/request/cluster.ts @@ -71,3 +71,12 @@ export function getServiceList(data: any) { params: data }) } + +// 关闭一项服务 +export function stopService(data: any) { + return request({ + url: 'agent/service_stop', + method: 'post', + data + }) +} \ No newline at end of file -- Gitee