import ajax from './ajax'
import { LOCATION_URL } from '@/config/config'

// 1. 定义基础路径
// const BASE_URL = '/huiqicha'
const BASE_URL = LOCATION_URL

//上传录音文件
export const audioUpload = (params) => ajax(BASE_URL + `/audio/upload`, params, 'POST');
//获取录音结果
export const audioGet = (uuid) => ajax(BASE_URL + `/audio/get?uuid=${uuid}`, 'GET');