import { get } from '@/utils/request'; import { TableListParams } from './data.d'; export async function queryRule(params: TableListParams) { return get('/api/rule', { params, }); } export async function removeRule(params: TableListParams) { return get('/api/rule', { method: 'POST', data: { ...params, method: 'delete', }, }); } export async function addRule(params: TableListParams) { return get('/api/rule', { method: 'POST', data: { ...params, method: 'post', }, }); } export async function updateRule(params: TableListParams) { return get('/api/rule', { method: 'POST', data: { ...params, method: 'update', }, }); }