From 93d859ef23c015d96c7c16024f7c99fe2c054c4f Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期二, 14 十月 2025 09:25:19 +0800
Subject: [PATCH] 定制商品
---
api/store-coupon.js | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/api/store-coupon.js b/api/store-coupon.js
index b1dddb5..7f5b46f 100644
--- a/api/store-coupon.js
+++ b/api/store-coupon.js
@@ -24,4 +24,29 @@
method: Method.POST,
needToken: true,
});
+}
+/**
+ * 鏍规嵁搴楅摵浼樻儬鍒稿叧鑱擨D鑾峰彇浼樻儬鍒歌鎯�
+ * @param {string|number} storeCoupRef - 搴楅摵浼樻儬鍒稿叧鑱擨D
+ * @returns {Promise} 杩斿洖浼樻儬鍒歌鎯�
+ */
+export function getStorePrize(storeCoupRef) {
+ return http.request({
+ url: `/lmk/store/prize/${storeCoupRef}`,
+ method: Method.GET,
+ needToken: true,
+ });
+}
+
+/**
+ * 棰嗗彇搴楅摵浼樻儬鍒�
+ * @param {string|number} storeCoupRef - 搴楅摵浼樻儬鍒稿叧鑱擨D
+ * @returns {Promise} 杩斿洖棰嗗彇缁撴灉
+ */
+export function claimPrize(storeCoupRef) {
+ return http.request({
+ url: `/lmk/store/prize/${storeCoupRef}`,
+ method: Method.POST,
+ needToken: true,
+ });
}
\ No newline at end of file
--
Gitblit v1.8.0