import apiClient from '../../utils/axios' interface paramsType { pageNum: number pageSize: number } //获取历史记录 export const getHistoryInfo = async (params: paramsType) => { try { const res = await apiClient.post( `/api/v1/app/reactionResult/getRecords?pageNum=${params.pageNum}&pageSize=${params.pageSize}`, ) return res.data } catch (error) { console.log(error) } } //删除历史记录 export const deleteHistoryInfo = async (id: number) => { try { const res = await apiClient.post( `/api/v1/app/reactionResult/deleteRecord?id=${id}`, ) return res.data } catch (error) { console.log(error) } } //搜索 export const searchHistoryInfo = async (search: string) => { try { const res = await apiClient.post( '/api/v1/app/reactionResult/searchRecord', { search }, ) return res.data } catch (error) { console.log(error) } } //打印 export const printHistoryInfo = async (id: number) => { try { const res = await apiClient.post( `/api/v1/app/reactionResult/printfRecord?id=${id}`, ) return res.data } catch (error) { console.log('打印出错', error) } }