import request from '@/utils/request' ; import { TableListParams } from '@/types/user.d' ; export async function queryUser ( params ) { return request ( '/api/user' , { params , } ) ; } export async function removeUser ( params ) { return request ( '/api/user' , { method : 'POST' , data : { ... params , method : 'delete' , } , } ) ; } export async function addUser ( params ) { return request ( '/api/user' , { method : 'POST' , data : { ... params , method : 'post' , } , } ) ; } export async function updateUser ( params ) { return request ( '/api/user' , { method : 'POST' , data : { ... params , method : 'update' , } , } ) ; }