init
This commit is contained in:
30
src/api/system/rolePermissionServer.js
Normal file
30
src/api/system/rolePermissionServer.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import http from '@/utils/http'
|
||||
class RolePermissionServer {
|
||||
async getRoles(callback) {
|
||||
let res = await http.get('/SysRolePermission/Query', {})
|
||||
return res
|
||||
}
|
||||
|
||||
async getRole(row) {
|
||||
let res = await http.get('/SysRolePermission/QueryByRoleId', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post('/SysRolePermission/add', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post('/SysRolePermission/edit', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post('/SysRolePermission/del', row)
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
||||
const rolePermissionServer = new RolePermissionServer()
|
||||
export default rolePermissionServer
|
||||
Reference in New Issue
Block a user