| | |
| | | ); |
| | | } |
| | | |
| | | /** 公共文件上传(永久有效,返回永久公开 previewURL,用于登录页等免登录展示的场景) */ |
| | | export function publicUploadFile(files: globalThis.File[]) { |
| | | const formData = new FormData(); |
| | | files.forEach((file) => formData.append('files', file)); |
| | | return requestClient.post<SystemStorageApi.StorageBlob[]>( |
| | | '/system/storage-blob/public-upload', |
| | | formData, |
| | | { headers: { 'Content-Type': 'multipart/form-data' } }, |
| | | ); |
| | | } |
| | | |
| | | /** 查询附件列表 */ |
| | | export function listAttachments(params: SystemStorageApi.AttachmentListParams) { |
| | | return requestClient.get<SystemStorageApi.StorageBlob[]>( |