From 982c97ab82f3beb1b4febcf014562eda34b9fc05 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期二, 29 九月 2026 17:59:41 +0800
Subject: [PATCH] feat(ui): 江苏商贸品牌视觉与首页/登录页改版
---
src/api/archive/stat/index.ts | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/src/api/archive/stat/index.ts b/src/api/archive/stat/index.ts
new file mode 100644
index 0000000..98a7302
--- /dev/null
+++ b/src/api/archive/stat/index.ts
@@ -0,0 +1,36 @@
+import { requestClient } from '#/api/request';
+
+export namespace ArchiveStatApi {
+ /** 鍒嗙被缁村害缁熻椤� */
+ export interface StatCategory {
+ categoryId?: number; // 鍒嗙被 ID
+ name?: string; // 鍒嗙被鍚嶇О
+ total?: number; // 妗f鏁伴噺
+ }
+
+ /** 瀛楀吀鍊肩淮搴︾粺璁¢」 */
+ export interface StatValue {
+ value?: number; // 瀛楀吀鍊�
+ name?: string; // 瀛楀吀鏍囩锛堝悗绔浆涔夛級
+ total?: number; // 妗f鏁伴噺
+ }
+
+ /** 妗f缁熻姒傝 */
+ export interface StatOverview {
+ totalCount?: number; // 妗f鎬绘暟
+ inStockCount?: number; // 鍦ㄥ簱妗f鏁�
+ borrowedCount?: number; // 鍊熷嚭涓。妗堟暟
+ borrowingCount?: number; // 鍊熷嚭涓�熼槄鍗曟暟
+ overdueCount?: number; // 閫炬湡鏈繕鍊熼槄鍗曟暟
+ byCategory?: StatCategory[]; // 鎸夊垎绫诲垎甯�
+ bySecretLevel?: StatValue[]; // 鎸夊瘑绾у垎甯�
+ byCarrierType?: StatValue[]; // 鎸夎浇浣撳垎甯�
+ }
+}
+
+/** 鏌ヨ妗f缁熻姒傝 */
+export function getArchiveStatOverview() {
+ return requestClient.get<ArchiveStatApi.StatOverview>(
+ '/archive/stat/overview',
+ );
+}
--
Gitblit v1.9.3