import type { AxiosResponse } from 'axios' import { apiHttp as http } from '@/utils/http' import type { ImageFile } from './type' // 获取页面数据 export const getImageListApi = async (): Promise> => { return http.get({ url: '/image/image/' }) } export const uploadImageFileApi = async ( file: FormData ): Promise> => { return http.post<{ url: string }>({ url: '/image/uploadImage/', data: file, headers: { CONTENT_TYPE: 'multipart/form-data' } }) }