mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-12 18:26:36 +08:00
feat(upload): refactor file management with statistics and multi-tab layout
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {BaseService} from '../core/base.service'
|
||||
import type {ListUploadsResponse, Upload, UploadImageResponse} from './types'
|
||||
import type {ListUploadsResponse, Upload, UploadImageResponse, FileStatsResponse} from './types'
|
||||
import type {InternalAxiosRequestConfig} from 'axios'
|
||||
|
||||
export type ImageQuality = 'low' | 'medium' | 'high' | 'origin'
|
||||
@@ -86,6 +86,13 @@ export class UploadService extends BaseService {
|
||||
return this.get<ListUploadsResponse>('/my', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前用户文件统计信息
|
||||
*/
|
||||
static async getFileStats(): Promise<FileStatsResponse> {
|
||||
return this.get<FileStatsResponse>('/stats')
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除文件
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user