import { get, post, put, del } from '@/api/request'


//创建和更新角色
export const save = data => post('/api/role/save', data)


//删除角色
export const deletes = (id) => del(`/api/role/delete?id=${id}`)

//获取角色列表
export const role = data => post('/api/role', data)
//获取指定角色
export const detail = (id) => get(`/api/role/detail?id=${id}`)

//获取菜单列表
export const all = () => get(`/api/menu/all`)

//获取我的菜单列表
export const my = () => get(`/api/menu/my`)



