功能:同步小程序流程
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
const request = require('../utils/request')
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Purpose: getProductPage supports product.js by holding or executing the get product page 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.
|
||||
*/
|
||||
getProductPage(params) {
|
||||
return request({
|
||||
url: '/product/list/page',
|
||||
@@ -12,24 +16,40 @@ module.exports = {
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Purpose: getAllProducts supports product.js by holding or executing the get all products 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.
|
||||
*/
|
||||
getAllProducts() {
|
||||
return request({
|
||||
url: '/product/list/all'
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Purpose: getProductById supports product.js by holding or executing the get product by id 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.
|
||||
*/
|
||||
getProductById(id) {
|
||||
return request({
|
||||
url: `/product/get/${id}`
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Purpose: getProductsByTag supports product.js by holding or executing the get products by tag 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.
|
||||
*/
|
||||
getProductsByTag(tag) {
|
||||
return request({
|
||||
url: `/product/list/tag/${encodeURIComponent(tag)}`
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Purpose: searchProducts supports product.js by holding or executing the search products 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.
|
||||
*/
|
||||
searchProducts(keyword) {
|
||||
return request({
|
||||
url: '/product/list/search',
|
||||
|
||||
Reference in New Issue
Block a user