123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- import { request } from '/@/utils/service';
- import { UserPageQuery, AddReq, DelReq, EditReq, InfoReq } from '@fast-crud/fast-crud';
- export const apiPrefix = '/api/system/dashboard/';
- export function GetList() {
- return request({
- url: apiPrefix,
- method: 'get',
- });
- }
- export function GetOverviewList() {
- return request({
- url: apiPrefix+'overview_stats/',
- method: 'get',
- });
- }
- export function GetDeviceRankList(params:object) {
- return request({
- url: apiPrefix+'device_rankings/',
- method: 'get',
- params:params
- });
- }
- export function GetBorrowRanking(params:object) {
- return request({
- url: apiPrefix+'device_rankings/',
- method: 'get',
- params:params
- });
- }
- export function GetUtilizationList() {
- return request({
- url: apiPrefix+'utilization_trend/',
- method: 'get',
- });
- }
- export function GetBorrowTrends() {
- return request({
- url: apiPrefix+'borrow_trends/?period=week',
- method: 'get',
- });
- }
- export function GetActiveUsers() {
- return request({
- url: apiPrefix+'active_users/',
- method: 'get',
- });
- }
|