功能:同步小程序流程
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
const request = require('../utils/request')
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Purpose: likeProduct supports product-like.js by holding or executing the like product 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.
|
||||
*/
|
||||
likeProduct(productId) {
|
||||
return request({
|
||||
url: `/product-like/like/${productId}`,
|
||||
@@ -12,6 +16,10 @@ module.exports = {
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Purpose: unlikeProduct supports product-like.js by holding or executing the unlike product 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.
|
||||
*/
|
||||
unlikeProduct(productId) {
|
||||
return request({
|
||||
url: `/product-like/unlike/${productId}`,
|
||||
@@ -19,6 +27,10 @@ module.exports = {
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Purpose: checkLikeStatus supports product-like.js by holding or executing the check like status 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.
|
||||
*/
|
||||
checkLikeStatus(productId) {
|
||||
return request({
|
||||
url: `/product-like/check/${productId}`
|
||||
|
||||
Reference in New Issue
Block a user