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

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
+30
View File
@@ -0,0 +1,30 @@
/**
* Purpose: request sends authenticated admin mini-program calls through the shared request wrapper.
* Usage: keep inventory endpoints aligned with /admin/inventory on the backend.
*/
const request = require('../utils/request')
module.exports = {
listItems(params) {
return request({
url: '/inventory/list',
params
})
},
saveItem(data) {
return request({
url: '/inventory/save',
method: 'POST',
data
})
},
adjustStock(id, data) {
return request({
url: `/inventory/${id}/adjust`,
method: 'POST',
data
})
}
}