import request from '@/utils/request' ; import { TableListQueryParams , TableListItem } from './data.d' ; export async function queryList ( params ? ) { return request ( '/pages/list' , { params , } ) ; } export async function createData ( params ) { return request ( '/pages/list' , { method : 'POST' , data : params , } ) ; } export async function updateData ( id , params ) { return request ( `/pages/list/${ id }` , { method : 'PUT' , data : params , } ) ; } export async function removeData ( id ) { return request ( `/pages/list/${ id }` , { method : 'delete' , } ) ; } export async function detailData ( id ) { return request ( `/pages/list/${ id }` ) ; }