重构项目文件夹目录
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
const request = require('../utils/request')
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
getStats() {
|
||||
return request({
|
||||
url: '/dashboard/stats'
|
||||
})
|
||||
},
|
||||
|
||||
getAnalytics() {
|
||||
return request({
|
||||
url: '/dashboard/analytics'
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user