功能:同步小程序流程

This commit is contained in:
xiaowang
2026-05-23 18:45:41 +08:00
parent 844516988b
commit 30ae763e18
117 changed files with 8823 additions and 76 deletions
+36
View File
@@ -1,6 +1,14 @@
/**
* Purpose: request supports coupon.js by holding or executing the request page or API role.
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
*/
const request = require('../utils/request')
module.exports = {
/**
* Purpose: listCoupons supports coupon.js by holding or executing the list coupons page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
listCoupons(params) {
return request({
url: '/coupon/list',
@@ -8,6 +16,10 @@ module.exports = {
})
},
/**
* Purpose: listAllCoupons supports coupon.js by holding or executing the list all coupons page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
listAllCoupons(shopId) {
return request({
url: '/coupon/list/all',
@@ -15,12 +27,20 @@ module.exports = {
})
},
/**
* Purpose: getCouponDetail supports coupon.js by holding or executing the get coupon detail page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
getCouponDetail(id) {
return request({
url: `/coupon/detail/${id}`
})
},
/**
* Purpose: createCoupon supports coupon.js by holding or executing the create coupon page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
createCoupon(data) {
return request({
url: '/coupon/create',
@@ -29,6 +49,10 @@ module.exports = {
})
},
/**
* Purpose: updateCoupon supports coupon.js by holding or executing the update coupon page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
updateCoupon(id, data) {
return request({
url: `/coupon/update/${id}`,
@@ -37,6 +61,10 @@ module.exports = {
})
},
/**
* Purpose: deleteCoupon supports coupon.js by holding or executing the delete coupon page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
deleteCoupon(id) {
return request({
url: `/coupon/delete/${id}`,
@@ -44,6 +72,10 @@ module.exports = {
})
},
/**
* Purpose: assignCoupon supports coupon.js by holding or executing the assign coupon page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
assignCoupon(data) {
return request({
url: '/coupon/assign',
@@ -53,6 +85,10 @@ module.exports = {
})
},
/**
* Purpose: distributeCoupon supports coupon.js by holding or executing the distribute coupon page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
distributeCoupon(data) {
return request({
url: '/coupon/distribute',