import request from '@/utils/request' ; import { TableListParams } from './data' ; export async function queryJob ( params ) { return request ( '/job/load' , { params , } ) ; } export async function removeJob ( params ) { return request ( '/job/delete' , { method : 'POST' , params , } ) ; } export async function launch ( params ) { return request ( '/job/launch' , { method : 'POST' , params , } ) ; } export async function saveJob ( params ) { return request ( '/job/save' , { method : 'POST' , data : { ... params , } , } ) ; } export async function toggleStatus ( params ) { return request ( '/job/toggleStatus' , { method : 'POST' , params , } ) ; }