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