功能:同步小程序流程
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
const request = require('../utils/request')
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Purpose: addToWishlist supports wishlist.js by holding or executing the add to wishlist 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.
|
||||
*/
|
||||
addToWishlist(productId) {
|
||||
return request({
|
||||
url: '/wishlist/add',
|
||||
@@ -15,6 +19,10 @@ module.exports = {
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Purpose: removeFromWishlist supports wishlist.js by holding or executing the remove from wishlist 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.
|
||||
*/
|
||||
removeFromWishlist(productId) {
|
||||
return request({
|
||||
url: '/wishlist/remove',
|
||||
@@ -25,6 +33,10 @@ module.exports = {
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Purpose: checkWishlist supports wishlist.js by holding or executing the check wishlist 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.
|
||||
*/
|
||||
checkWishlist(productId) {
|
||||
return request({
|
||||
url: '/wishlist/check',
|
||||
@@ -34,6 +46,10 @@ module.exports = {
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Purpose: getWishlist supports wishlist.js by holding or executing the get wishlist 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.
|
||||
*/
|
||||
getWishlist() {
|
||||
return request({
|
||||
url: '/wishlist/list'
|
||||
|
||||
Reference in New Issue
Block a user