From 44f0c6d142179f39f2509efb2fcf4ca57b4ef256 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 13 Aug 2025 11:44:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=BB=9F=E8=AE=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sheep/api/index.ts | 2 ++ src/sheep/api/total.ts | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/sheep/api/total.ts diff --git a/src/sheep/api/index.ts b/src/sheep/api/index.ts index a661577..fd63da5 100644 --- a/src/sheep/api/index.ts +++ b/src/sheep/api/index.ts @@ -37,3 +37,5 @@ export { default as hardApi } from "./hard" export { default as noticeApi } from "./notice" export { default as invitationApi } from "./invitation" + +export { default as totalApi } from "./total" diff --git a/src/sheep/api/total.ts b/src/sheep/api/total.ts new file mode 100644 index 0000000..f887354 --- /dev/null +++ b/src/sheep/api/total.ts @@ -0,0 +1,22 @@ +import request from "@/sheep/utils/request" + +export default { + /** + * 菜品销量按照分类查询 + */ + productByClassify: (data: any) => + request({ + url: `/hard/hard-canteen-total-log/app/product-by-classify`, + method: "POST", + data, + }), + /** + * 近一周各个食堂菜品购买统计 + */ + productByCanteen: (data: any) => + request({ + url: `/hard/hard-canteen-total-log/app/product-by-canteen`, + method: "POST", + data, + }), +} \ No newline at end of file