import request from './index'

// 上传文件
export function uploadApi(data: FormData) {
  return request({
    url: 'file/uploadFile',
    method: 'post',
    data,
  })
}

// 获取文件地址
export function getFileUrl(fileName: string) {
  return request({
    url: `file/url?fileName=${fileName}`,
    method: 'get',
  })
}
