From e5687bbf5ddfaea82f4f86d875323f24e2c8b223 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期日, 11 十月 2026 21:31:27 +0800
Subject: [PATCH] fix: 修复 1.网页标题与加载动画修改(改为中性文案,避免串品牌)
---
src/api/system/post/index.ts | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts
index 8b32ad2..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>; // 瀵煎叆澶辫触鐨勫矖浣嶅悕鍙婂師鍥�
+ }
}
/** 鏌ヨ宀椾綅鍒楄〃 */
@@ -61,3 +68,19 @@
params,
});
}
+
+/** 涓嬭浇宀椾綅瀵煎叆妯℃澘 */
+export function importPostTemplate() {
+ return requestClient.download('/system/post/get-import-template');
+}
+
+/** 瀵煎叆宀椾綅 */
+export function importPost(file: File, updateSupport: boolean) {
+ return requestClient.upload<SystemPostApi.PostImportRespVO>(
+ '/system/post/import',
+ {
+ file,
+ updateSupport,
+ },
+ );
+}
--
Gitblit v1.9.3