mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-11 06:57:10 +08:00
feat: 适配访问趋势图表卡片
This commit is contained in:
9
src/apis/common/home.ts
Normal file
9
src/apis/common/home.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import http from '@/utils/http'
|
||||
import type * as Common from './type'
|
||||
|
||||
const BASE_URL = '/dashboard'
|
||||
|
||||
/** @desc 查询访问趋势 */
|
||||
export function listAccessTrend(days: number) {
|
||||
return http.get<Common.DashboardAccessTrendResp[]>(`${BASE_URL}/access/trend/${days}`)
|
||||
}
|
@@ -1,2 +1,3 @@
|
||||
export * from './common'
|
||||
export * from './captcha'
|
||||
export * from './home'
|
||||
|
@@ -3,3 +3,10 @@ export interface ImageCaptchaResp {
|
||||
uuid: string
|
||||
img: string
|
||||
}
|
||||
|
||||
/** 仪表盘访问趋势 */
|
||||
export interface DashboardAccessTrendResp {
|
||||
date: string
|
||||
pvCount: number
|
||||
ipCount: number
|
||||
}
|
||||
|
Reference in New Issue
Block a user