hsy
4 天以前 fee2f2532144fca6c81b1523aeef54165c5263b2
src/api/system/storage/index.ts
@@ -45,6 +45,17 @@
  );
}
/** 公共文件上传(永久有效,返回永久公开 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[]>(