From e3d08d5943c13c3e9a4203835b6c348e6826dde9 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 07 八月 2025 19:35:40 +0800
Subject: [PATCH] 修改商品广场

---
 api/common.js |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/api/common.js b/api/common.js
index d6d7573..0a56d73 100644
--- a/api/common.js
+++ b/api/common.js
@@ -26,7 +26,29 @@
 }
 
 /**
+ * 鑾峰彇鑵捐浜慶os sts涓存椂璁块棶鍑瘉
+ */
+ export function getSTSToken() {
+  return http.request({
+    url: `${api.common}/lmk/file/sts`,
+    method: Method.GET,
+  });
+}
+
+/**
+ * 鑾峰彇鏂囦欢璁块棶鍦板潃
+ */
+ export function getFilePreviewUrl(fileKey) {
+  return http.request({
+    url: `${api.common}/lmk/file/preview`,
+    method: Method.POST,
+	data: {fileKey: fileKey}
+  });
+}
+
+/**
  * 鏂囦欢涓婁紶鍦板潃
  * @type {string}
  */
-export const upload = api.common + "/common/upload/file";
+export const upload = api.common + "/lmk/file/upload";
+export const multiUpload = api.common + "/lmk/file/multi/upload";

--
Gitblit v1.8.0