mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-13 02:57:11 +08:00
feat: 新增分析页
This commit is contained in:
@@ -14,3 +14,23 @@ export function listDashboardAccessTrend(days: number) {
|
||||
export function listDashboardNotice() {
|
||||
return http.get<T.DashboardNoticeResp[]>(`${BASE_URL}/notice`)
|
||||
}
|
||||
|
||||
/** @desc 查询访问时段分析 */
|
||||
export function getAnalysisTimeslot() {
|
||||
return http.get<T.DashboardChartCommonResp[]>(`${BASE_URL}/analysis/timeslot`)
|
||||
}
|
||||
|
||||
/** @desc 查询模块分析 */
|
||||
export function getAnalysisModule() {
|
||||
return http.get<T.DashboardChartCommonResp[]>(`${BASE_URL}/analysis/module`)
|
||||
}
|
||||
|
||||
/** @desc 查询终端分析 */
|
||||
export function getAnalysisOs() {
|
||||
return http.get<T.DashboardChartCommonResp[]>(`${BASE_URL}/analysis/os`)
|
||||
}
|
||||
|
||||
/** @desc 查询浏览器分析 */
|
||||
export function getAnalysisBrowser() {
|
||||
return http.get<T.DashboardChartCommonResp[]>(`${BASE_URL}/analysis/browser`)
|
||||
}
|
||||
|
@@ -12,6 +12,12 @@ export interface DashboardAccessTrendResp {
|
||||
ipCount: number
|
||||
}
|
||||
|
||||
/** 仪表盘图表类型 */
|
||||
export interface DashboardChartCommonResp {
|
||||
name: string
|
||||
value: number
|
||||
}
|
||||
|
||||
/** 仪表盘公告类型 */
|
||||
export interface DashboardNoticeResp {
|
||||
id: number
|
||||
|
Reference in New Issue
Block a user