import request from '@/utils/request' ; import { TableListParams } from './data' ; export async function queryTrigger ( params ) { return request ( '/trigger/load' , { params , } ) ; } export async function removeTrigger ( params ) { return request ( '/trigger/delete' , { method : 'POST' , params , } ) ; } export async function saveTrigger ( params ) { return request ( '/trigger/save' , { method : 'POST' , data : { ... params , } , } ) ; } export async function toggleTriggerStatus ( params ) { return request ( '/trigger/toggleStatus' , { method : 'POST' , params , } ) ; }