mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-01 18:57:14 +08:00
feat: 分析页增加数据总览和热门模块列表,调整分析页布局
This commit is contained in:
@@ -5,16 +5,26 @@ export type * from './type'
|
||||
|
||||
const BASE_URL = '/dashboard'
|
||||
|
||||
/** @desc 查询访问趋势 */
|
||||
export function listDashboardAccessTrend(days: number) {
|
||||
return http.get<T.DashboardAccessTrendResp[]>(`${BASE_URL}/access/trend/${days}`)
|
||||
}
|
||||
|
||||
/** @desc 查询公告列表 */
|
||||
export function listDashboardNotice() {
|
||||
return http.get<T.DashboardNoticeResp[]>(`${BASE_URL}/notice`)
|
||||
}
|
||||
|
||||
/** @desc 查询 PV 总览 */
|
||||
export function getDashboardOverviewPv() {
|
||||
return http.get<T.DashboardOverviewCommonResp>(`${BASE_URL}/analysis/overview/pv`)
|
||||
}
|
||||
|
||||
/** @desc 查询 IP 总览 */
|
||||
export function getDashboardOverviewIp() {
|
||||
return http.get<T.DashboardOverviewCommonResp>(`${BASE_URL}/analysis/overview/ip`)
|
||||
}
|
||||
|
||||
/** @desc 查询访问趋势 */
|
||||
export function getDashboardAccessTrend(days: number) {
|
||||
return http.get<T.DashboardAccessTrendResp[]>(`${BASE_URL}/access/trend/${days}`)
|
||||
}
|
||||
|
||||
/** @desc 查询访问时段分析 */
|
||||
export function getAnalysisTimeslot() {
|
||||
return http.get<T.DashboardChartCommonResp[]>(`${BASE_URL}/analysis/timeslot`)
|
||||
@@ -1,3 +1,3 @@
|
||||
export * from './common'
|
||||
export * from './captcha'
|
||||
export * from './home'
|
||||
export * from './dashboard'
|
||||
|
||||
@@ -5,6 +5,13 @@ export interface ImageCaptchaResp {
|
||||
expireTime: number
|
||||
}
|
||||
|
||||
/** 仪表盘公告类型 */
|
||||
export interface DashboardNoticeResp {
|
||||
id: number
|
||||
title: string
|
||||
type: number
|
||||
}
|
||||
|
||||
/** 仪表盘访问趋势类型 */
|
||||
export interface DashboardAccessTrendResp {
|
||||
date: string
|
||||
@@ -12,19 +19,20 @@ export interface DashboardAccessTrendResp {
|
||||
ipCount: number
|
||||
}
|
||||
|
||||
/** 仪表盘图表类型 */
|
||||
/** 仪表盘通用总览类型 */
|
||||
export interface DashboardOverviewCommonResp {
|
||||
total: number
|
||||
today: number
|
||||
growth: number
|
||||
dataList: DashboardChartCommonResp[]
|
||||
}
|
||||
|
||||
/** 仪表盘通用图表类型 */
|
||||
export interface DashboardChartCommonResp {
|
||||
name: string
|
||||
value: number
|
||||
}
|
||||
|
||||
/** 仪表盘公告类型 */
|
||||
export interface DashboardNoticeResp {
|
||||
id: number
|
||||
title: string
|
||||
type: number
|
||||
}
|
||||
|
||||
/* 行为验证码类型 */
|
||||
export interface BehaviorCaptchaResp {
|
||||
originalImageBase64: string
|
||||
|
||||
Reference in New Issue
Block a user