菜品必点配置
This commit is contained in:
1 parent
be639340aa
commit
1afc82492e
7 files changed
+569
-12
No files matched your search
@@ -0,0 +1,44 @@
|
||||
import request from "/@/utils/request"
|
||||
|
||||
/** 分页查询分组(merchantId 不传则按数据权限返回可见范围全部) */
|
||||
export function fetchPage(query?: object) {
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpuChoiceGroup/page",
|
||||
method: "get",
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
/** 按商户查询分组列表(用于下拉;merchantId 必填) */
|
||||
export function fetchList(merchantId: string | number) {
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpuChoiceGroup/list",
|
||||
method: "get",
|
||||
params: { merchantId },
|
||||
})
|
||||
}
|
||||
|
||||
export function addObj(obj?: object) {
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpuChoiceGroup",
|
||||
method: "post",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
|
||||
export function putObj(obj?: object) {
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpuChoiceGroup",
|
||||
method: "put",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
|
||||
/** Body:id 数组 */
|
||||
export function delObjs(ids: (string | number)[]) {
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpuChoiceGroup",
|
||||
method: "delete",
|
||||
data: ids,
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user