From caddfd7efaabf86eb2348ae33d9b7a2281a2b167 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 16 十月 2026 21:04:56 +0800
Subject: [PATCH] fix(user): 导入失败明细改用弹窗展示,用户页字段统一叫「用户账号」
---
src/api/system/post/index.ts | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts
index 3032a56..ca7c381 100644
--- a/src/api/system/post/index.ts
+++ b/src/api/system/post/index.ts
@@ -13,6 +13,13 @@
remark: string;
createTime?: Date;
}
+
+ /** 宀椾綅瀵煎叆缁撴灉 */
+ export interface PostImportRespVO {
+ createPostNames?: string[]; // 鏂板鎴愬姛鐨勫矖浣嶅悕
+ updatePostNames?: string[]; // 鏇存柊鎴愬姛鐨勫矖浣嶅悕
+ failurePostNames?: Record<string, string>; // 瀵煎叆澶辫触鐨勫矖浣嶅悕鍙婂師鍥�
+ }
}
/** 鏌ヨ宀椾綅鍒楄〃 */
@@ -69,8 +76,11 @@
/** 瀵煎叆宀椾綅 */
export function importPost(file: File, updateSupport: boolean) {
- return requestClient.upload('/system/post/import', {
- file,
- updateSupport,
- });
+ return requestClient.upload<SystemPostApi.PostImportRespVO>(
+ '/system/post/import',
+ {
+ file,
+ updateSupport,
+ },
+ );
}
--
Gitblit v1.9.3