22 lines
500 B
TypeScript
22 lines
500 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<{ code: string; data: DashboardStats; msg: string }>(
|
|
"/api/biz/dashboard/stats"
|
|
);
|
|
};
|
|
|
|
export const getRecentTasks = () => {
|
|
return http.get<{ code: string; data: MeetingVO[]; msg: string }>(
|
|
"/api/biz/dashboard/recent"
|
|
);
|
|
};
|