功能:同步小程序流程

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
+64
View File
@@ -1,6 +1,14 @@
/**
* Purpose: request supports user.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: listUsers supports user.js by holding or executing the list users 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.
*/
listUsers(params) {
return request({
url: '/user/list',
@@ -8,12 +16,20 @@ module.exports = {
})
},
/**
* Purpose: listAllUsers supports user.js by holding or executing the list all users 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.
*/
listAllUsers() {
return request({
url: '/user/list/all'
})
},
/**
* Purpose: listArtists supports user.js by holding or executing the list artists 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.
*/
listArtists(shopId) {
return request({
url: '/user/list/artists',
@@ -21,6 +37,10 @@ module.exports = {
})
},
/**
* Purpose: createUser supports user.js by holding or executing the create user 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.
*/
createUser(data) {
return request({
url: '/user/create',
@@ -29,6 +49,10 @@ module.exports = {
})
},
/**
* Purpose: updateUser supports user.js by holding or executing the update user 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.
*/
updateUser(id, data) {
return request({
url: `/user/update/${id}`,
@@ -37,6 +61,10 @@ module.exports = {
})
},
/**
* Purpose: updateUserStatus supports user.js by holding or executing the update user 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.
*/
updateUserStatus(id, status) {
return request({
url: `/user/status/${id}`,
@@ -47,6 +75,10 @@ module.exports = {
})
},
/**
* Purpose: deleteUser supports user.js by holding or executing the delete user 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.
*/
deleteUser(id) {
return request({
url: `/user/delete/${id}`,
@@ -54,6 +86,10 @@ module.exports = {
})
},
/**
* Purpose: unbindUser supports user.js by holding or executing the unbind user 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.
*/
unbindUser(id) {
return request({
url: `/user/unbind/${id}`,
@@ -62,6 +98,10 @@ module.exports = {
})
},
/**
* Purpose: resetPassword supports user.js by holding or executing the reset password 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.
*/
resetPassword(id) {
return request({
url: `/user/reset-password/${id}`,
@@ -69,24 +109,40 @@ module.exports = {
})
},
/**
* Purpose: getCurrentUserInfo supports user.js by holding or executing the get current user info 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.
*/
getCurrentUserInfo() {
return request({
url: '/user/info'
})
},
/**
* Purpose: getUserAsset supports user.js by holding or executing the get user asset 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.
*/
getUserAsset(id) {
return request({
url: `/user/${id}/asset`
})
},
/**
* Purpose: getUserBalanceHistory supports user.js by holding or executing the get user balance history 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.
*/
getUserBalanceHistory(id) {
return request({
url: `/user/${id}/balance/history`
})
},
/**
* Purpose: changeUserBalance supports user.js by holding or executing the change user balance 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.
*/
changeUserBalance(id, data) {
return request({
url: `/user/${id}/balance/change`,
@@ -95,6 +151,10 @@ module.exports = {
})
},
/**
* Purpose: overrideUserVip supports user.js by holding or executing the override user vip 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.
*/
overrideUserVip(id, data) {
return request({
url: `/user/${id}/vip/override`,
@@ -103,6 +163,10 @@ module.exports = {
})
},
/**
* Purpose: recalculateUserVip supports user.js by holding or executing the recalculate user vip 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.
*/
recalculateUserVip(id) {
return request({
url: `/user/${id}/vip/recalculate`,