功能:同步小程序流程

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
+20
View File
@@ -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',