Blame view
src/api/role.js
600 Bytes
d7d9c38c2 auto commit the c... |
1 2 3 4 |
import request from '@/utils/request' export function getRoutes() { return request({ |
50760eab9 auto commit the c... |
5 |
url: '/yp/routes', |
d7d9c38c2 auto commit the c... |
6 7 8 9 10 11 |
method: 'get' }) } export function getRoles() { return request({ |
50760eab9 auto commit the c... |
12 |
url: '/yp/roles', |
d7d9c38c2 auto commit the c... |
13 14 15 16 17 18 |
method: 'get' }) } export function addRole(data) { return request({ |
50760eab9 auto commit the c... |
19 |
url: '/yp/role', |
d7d9c38c2 auto commit the c... |
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
method: 'post', data }) } export function updateRole(id, data) { return request({ url: `/vue-element-admin/role/${id}`, method: 'put', data }) } export function deleteRole(id) { return request({ url: `/vue-element-admin/role/${id}`, method: 'delete' }) } |