feat: 线上菜品分类的餐段类型
This commit is contained in:
1 parent
01fb67fa1b
commit
1d5413b5e5
6 files changed
+91
-47
No files matched your search
@@ -1,41 +1,48 @@
|
||||
import request from "/@/utils/request"
|
||||
|
||||
export function fetchList(query?: Object) {
|
||||
return request({
|
||||
url: '/canteen/canteenOnlineSpu/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpu/page",
|
||||
method: "get",
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
export function addObj(obj?: Object) {
|
||||
return request({
|
||||
url: '/canteen/canteenOnlineSpu',
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpu",
|
||||
method: "post",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
|
||||
export function getObj(id?: string) {
|
||||
return request({
|
||||
url: '/canteen/canteenOnlineSpu/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpu/" + id,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function delObjs(ids?: Object) {
|
||||
return request({
|
||||
url: '/canteen/canteenOnlineSpu',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpu",
|
||||
method: "delete",
|
||||
data: ids,
|
||||
})
|
||||
}
|
||||
|
||||
export function putObj(obj?: Object) {
|
||||
return request({
|
||||
url: '/canteen/canteenOnlineSpu',
|
||||
method: 'put',
|
||||
data: obj
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpu",
|
||||
method: "put",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
|
||||
export function saveCanteenSpuBatch(obj?: Object) {
|
||||
return request({
|
||||
url: "/canteen/canteenOnlineSpu/saveCanteenSpuBatch",
|
||||
method: "post",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user