2026-05-23 18:45:41 +08:00
|
|
|
/**
|
|
|
|
|
* Purpose: request supports dashboard.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.
|
|
|
|
|
*/
|
2026-04-20 16:02:57 +08:00
|
|
|
const request = require('../utils/request')
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
2026-05-23 18:45:41 +08:00
|
|
|
/**
|
|
|
|
|
* Purpose: getStats supports dashboard.js by holding or executing the get stats 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.
|
|
|
|
|
*/
|
2026-04-20 16:02:57 +08:00
|
|
|
getStats() {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/dashboard/stats'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|