import request from '@/utils/request'
export function getRoutes() {
return request({
url: '/routes',
method: 'get'
})
}
export function getRoles() {
url: '/roles',
export function addRole(data) {
url: '/role',
method: 'post',
data
export function updateRole(id, data) {
url: `/role/${id}`,
method: 'put',
export function deleteRole(id) {
method: 'delete'