feat: 完善仪表盘热门模块区块内容

1.完善仪表盘热门模块区块内容
2.sys_log 表增加 module 字段索引
3.优化总计区块图标
This commit is contained in:
2023-09-09 11:28:44 +08:00
parent 3440aa4faa
commit 83b2e2a7c0
27 changed files with 200 additions and 68 deletions

View File

@@ -10,6 +10,12 @@ export interface DashboardTotalRecord {
newPvFromYesterday: number;
}
export interface DashboardPopularModuleRecord {
module: string;
pvCount: number;
newPvFromYesterday: number;
}
export interface DashboardAnnouncementRecord {
id: string;
title: string;
@@ -20,6 +26,12 @@ export function getTotal() {
return axios.get<DashboardTotalRecord>(`${BASE_URL}/total`);
}
export function listPopularModule() {
return axios.get<DashboardPopularModuleRecord[]>(
`${BASE_URL}/popular/module`
);
}
export function listAnnouncement() {
return axios.get<DashboardAnnouncementRecord[]>(`${BASE_URL}/announcement`);
}