import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 首页模块
 */

// 首页统计数据返回类型
export interface ResHomeStatics {
  customerCount: number;
  overdueRemindCount: number;
  unfollowedOpportunitiesCount: number
}

// 首页统计数据
export const getHomeStaticsAll = (params: any) => {
  return http.get<ResHomeStatics>(PORT1 + `/stats/summary`, params);
};
