mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-07 02:57:11 +08:00
feat: 文件管理增加资源统计,统计总存储量、各类型文件存储占用
This commit is contained in:
@@ -17,3 +17,8 @@ export function updateFile(data: any, id: string) {
|
||||
export function deleteFile(ids: string | Array<string>) {
|
||||
return http.del(`${BASE_URL}/${ids}`)
|
||||
}
|
||||
|
||||
/** @desc 查询文件资源统计 */
|
||||
export function statisticsFile() {
|
||||
return http.get(`${BASE_URL}/statistics`)
|
||||
}
|
||||
|
||||
@@ -188,6 +188,14 @@ export interface FileQuery extends PageQuery {
|
||||
name?: string
|
||||
type?: string
|
||||
}
|
||||
/** 文件资源统计 */
|
||||
export interface FileStatisticsResp {
|
||||
type: string
|
||||
size: number
|
||||
formattedSize: string
|
||||
number: number
|
||||
data: Array<FileStatisticsResp>
|
||||
}
|
||||
|
||||
/** 系统存储类型 */
|
||||
export type StorageResp = {
|
||||
|
||||
Reference in New Issue
Block a user