import { request } from '../utils/request'; export function fetchJobList(groupName: string) { return request({ url: '/job/list', method: 'get', params: { groupName } }); } export function fetchNodeRetry(nodeId: string, taskBatchId: string) { return request({ url: `/workflow/node/retry/${nodeId}/${taskBatchId}`, method: 'post' }); } export function fetchNodeStop(nodeId: string, taskBatchId: string) { return request({ url: `/workflow/node/stop/${nodeId}/${taskBatchId}`, method: 'post' }); } export function fetchGroupNameList() { return request({ url: `/group/all/group-name/list`, method: 'get' }); } export function fetchAddWorkflow(data: Flow.NodeDataType) { return request({ url: `/workflow`, method: 'post', data }); } export function fetchUpdateWorkflow(data: Flow.NodeDataType) { return request({ url: `/workflow`, method: 'put', data }); } export function fetchWorkflowInfo(id: string) { return request({ url: `/workflow/${id}`, method: 'get' }); }