import { getAction, postAction, putAction } from '@/api/manage'

export const addRole = data => postAction('/sys/role/add', data)
export const editRole = data => putAction('/sys/role/edit', data)
export const duplicateCheck = params => getAction('/sys/duplicate/check', params)

// 权限管理
export const queryTreeListForRole = params => getAction('/sys/role/queryTreeList', params)
export const queryRolePermission = params => getAction('/sys/permission/queryRolePermission', params)
export const saveRolePermission = data => postAction('/sys/permission/saveRolePermission', data)
