shengchanzhe 09f21041d9 init
2023-07-16 19:14:41 +08:00

31 lines
882 B
TypeScript

import request from '@/utils/request'
// 菜单列表
export function menuLists(params: Record<string, any>) {
return request.get({ url: '/auth.menu/lists', params })
}
// 菜单全部
export function menuAll(params?: Record<string, any>) {
return request.get({ url: '/auth.menu/all', params })
}
// 添加菜单
export function menuAdd(params: Record<string, any>) {
return request.post({ url: '/auth.menu/add', params })
}
// 编辑菜单
export function menuEdit(params: Record<string, any>) {
return request.post({ url: '/auth.menu/edit', params })
}
// 菜单删除
export function menuDelete(params: Record<string, any>) {
return request.post({ url: '/auth.menu/delete', params })
}
// 菜单详情
export function menuDetail(params: Record<string, any>) {
return request.get({ url: '/auth.menu/detail', params })
}