You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
import { defHttp } from '@/utils/http/axios'
|
|
|
|
|
|
|
|
export interface FileVO {
|
|
|
|
id: number
|
|
|
|
configId: number
|
|
|
|
path: string
|
|
|
|
name: string
|
|
|
|
url: string
|
|
|
|
size: string
|
|
|
|
type: string
|
|
|
|
createTime: Date
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FilePageReqVO extends PageParam {
|
|
|
|
path?: string
|
|
|
|
type?: string
|
|
|
|
createTime?: Date[]
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询文件列表
|
|
|
|
export function getFilePageApi(params: FilePageReqVO) {
|
|
|
|
return defHttp.get({ url: '/infra/file/page', params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除文件
|
|
|
|
export function deleteFileApi(id: number) {
|
|
|
|
return defHttp.delete({ url: '/infra/file/delete?id=' + id })
|
|
|
|
}
|