index.ts 360 B

123456789101112
  1. import { defHttp } from '@/config/axios'
  2. import type { FileVO } from './types'
  3. // 查询文件列表
  4. export const getFilePageApi = ({ params }) => {
  5. return defHttp.get<PageResult<FileVO>>({ url: '/infra/file/page', params })
  6. }
  7. // 删除文件
  8. export const deleteFileApi = (id: number) => {
  9. return defHttp.delete({ url: '/infra/file/delete?id=' + id })
  10. }