Files
biz-mobile-cloud-zax/src/sheep/api/product.ts
T
2026-08-10 10:20:07 +08:00

32 lines
862 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import request from "@/sheep/utils/request"
export default {
/** 查询在线点餐商品详情,ID 来源于 canteen_online_spu。 */
get: (params) => {
return request({
url: "/canteen/canteenOnlineSpu/app/getCanteenSpuDetails",
method: "GET",
params,
})
},
/** 查询每日菜品详情,ID 来源于 canteen_spu 或套餐组成的 childSpuId。 */
getDaily: (params: { id: string | number }) => {
return request({
url: "/canteen/canteenSpu/app/getCanteenSpuDetails",
method: "GET",
params,
})
},
/**
* 通过部门ID查询商户简洁信息
* @param deptId 部门ID
* @param type MerchantTypeEnum(如 CANTEEN)
*/
getMerchantSimpleByDeptId: (params: { deptId: string | number; type: string }) =>
request({
url: "/canteen/canteenOnlineSpu/app/getMerchantSimpleByDeptId",
method: "GET",
params,
}),
}