refactor: filelist

This commit is contained in:
xingyu
2022-07-20 14:05:05 +08:00
parent 3c34888959
commit 2feda41c7e
3 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()
// 查询文件列表
export const getFilePageApi = (params) => {
return request.get({ url: '/infra/file/page', params })
}
// 删除文件
export const deleteFileApi = (id: number) => {
return request.delete({ url: '/infra/file/delete?id=' + id })
}

View File

@@ -0,0 +1,8 @@
export type FileVO = {
id: number
path: string
url: string
size: string
type: string
createTime: string
}