This commit is contained in:
2025-12-11 18:43:12 +08:00
parent 2479772d8b
commit 3f0860b405
2 changed files with 792 additions and 233 deletions

View File

@@ -5,7 +5,7 @@ import request from '../request'
import type { Attachment, PaginatedResponse } from '@/types/api'
// 上传附件
export function uploadAttachment(filePath: string, type?: 'image' | 'video' | 'file') {
export function uploadAttachment(filePath: string, type?: 'image' | 'video' | 'file' | 'audio') {
return request.upload<Attachment>('/attachments/upload', filePath, 'file', type ? { type } : undefined)
}

File diff suppressed because it is too large Load Diff