yshop意向点餐系统v1.2.2

This commit is contained in:
hupeng committed 2023-12-17 10:19:51 +08:00
1 parent d03982bf66
commit fc575265c3
4685 files changed
+518513 -182051

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
/*
* @Author: Gaoxs
* @Date: 2023-05-21 23:40:06
* @LastEditors: Gaoxs
* @Description:
*/
import request from '@/config/axios'
export async function getPage(query) {
return await request.get({
url: '/shop/material/page',
params: query
})
}
export async function addObj(obj) {
return await request.post({
url: '/shop/material/create',
data: obj
})
}
export async function getObj(id) {
return await request.ge({
url: '/shop/material/' + id
})
}
export async function delObj(id) {
return await request.delete({
url: '/shop/material/delete',
params: {
id
}
})
}
export async function putObj(obj) {
return await request.put({
url: '/shop/material/update',
data: obj
})
}