22 lines
510 B
TypeScript
22 lines
510 B
TypeScript
|
|
import http from "../http";
|
||
|
|
import { MeetingVO } from "./meeting";
|
||
|
|
|
||
|
|
export interface DashboardStats {
|
||
|
|
totalMeetings: number;
|
||
|
|
processingTasks: number;
|
||
|
|
todayNew: number;
|
||
|
|
successRate: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const getDashboardStats = () => {
|
||
|
|
return http.get<any, { code: string; data: DashboardStats; msg: string }>(
|
||
|
|
"/api/biz/dashboard/stats"
|
||
|
|
);
|
||
|
|
};
|
||
|
|
|
||
|
|
export const getRecentTasks = () => {
|
||
|
|
return http.get<any, { code: string; data: MeetingVO[]; msg: string }>(
|
||
|
|
"/api/biz/dashboard/recent"
|
||
|
|
);
|
||
|
|
};
|