26 lines
648 B
TypeScript
26 lines
648 B
TypeScript
import request from '@/utils/request'
|
|
|
|
// 菜品列表
|
|
export function apiDishesLists(params: any) {
|
|
return request.get({ url: '/dishes/lists', params })
|
|
}
|
|
|
|
// 添加菜品
|
|
export function apiDishesAdd(params: any) {
|
|
return request.post({ url: '/dishes/add', params })
|
|
}
|
|
|
|
// 编辑菜品
|
|
export function apiDishesEdit(params: any) {
|
|
return request.post({ url: '/dishes/edit', params })
|
|
}
|
|
|
|
// 删除菜品
|
|
export function apiDishesDelete(params: any) {
|
|
return request.post({ url: '/dishes/delete', params })
|
|
}
|
|
|
|
// 菜品详情
|
|
export function apiDishesDetail(params: any) {
|
|
return request.get({ url: '/dishes/detail', params })
|
|
} |