refactor: file vxe

This commit is contained in:
xingyu4j
2022-11-22 16:41:43 +08:00
parent e6acf9e8dc
commit 562282b2ad
8 changed files with 339 additions and 423 deletions

View File

@ -15,7 +15,7 @@ export type FileConfigVO = {
id: number
name: string
storage: string
primary: number
master: boolean
visible: boolean
config: ConfigType
remark: string

View File

@ -1,7 +1,21 @@
import request from '@/config/axios'
export type FileVO = {
id: number
path: string
url: string
size: string
type: string
createTime: string
}
export interface FilePageReqVO extends PageParam {
name?: string
createTime?: string[]
}
// 查询文件列表
export const getFilePageApi = (params) => {
export const getFilePageApi = (params: FilePageReqVO) => {
return request.get({ url: '/infra/file/page', params })
}

View File

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