功能:重建指尖管理师规划系统

This commit is contained in:
xiaowang
2026-06-04 16:39:06 +08:00
parent 73483e7b0c
commit 677890f518
413 changed files with 9602 additions and 795 deletions
+63
View File
@@ -0,0 +1,63 @@
/**
* Purpose: request supports product.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: listProducts supports product.js by holding or executing the list 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.
*/
listProducts(params) {
return request({
url: '/product/list',
params
})
},
/**
* Purpose: listAllProducts supports product.js by holding or executing the list 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.
*/
listAllProducts() {
return request({
url: '/product/list/all'
})
},
/**
* Purpose: createProduct supports product.js by holding or executing the create 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.
*/
createProduct(data) {
return request({
url: '/product/create',
method: 'POST',
data
})
},
/**
* Purpose: updateProduct supports product.js by holding or executing the update 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.
*/
updateProduct(id, data) {
return request({
url: `/product/update/${id}`,
method: 'PUT',
data
})
},
/**
* Purpose: deleteProduct supports product.js by holding or executing the delete 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.
*/
deleteProduct(id) {
return request({
url: `/product/delete/${id}`,
method: 'DELETE'
})
}
}