From c6bddd39c91f2d411316a78ed27b466488c2a39e Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期二, 30 九月 2025 17:38:39 +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