feat: add admin file preview downloads

This commit is contained in:
Lan
2026-06-03 04:20:52 +08:00
parent b97f2cb86b
commit a4edd1293a
7 changed files with 248 additions and 9 deletions
+18
View File
@@ -91,6 +91,24 @@ export interface FileListResponse {
summary?: AdminFileSummary
}
export interface AdminFilePreviewResponse {
id: number
code: string
name: string
type: 'text'
content: string
length: number
previewLength?: number
preview_length?: number
truncated: boolean
maxChars?: number
max_chars?: number
createdAt?: string | null
created_at?: string | null
expiredAt?: string | null
expired_at?: string | null
}
export interface FileUploadResponse {
code: string
name: string