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

export const getPermissionList = params => getAction('/sys/permission/list', params)

// 权限管理
export const addPermission = data => postAction('/sys/permission/add', data)
export const editPermission = data => putAction('/sys/permission/edit', data)
export const queryTreeList = params => getAction('/sys/permission/queryTreeList', params)

export const getPermissionRuleList = params => getAction('/sys/permission/getPermRuleListByPermId', params)
export const queryPermissionRule = params => getAction('/sys/permission/queryPermissionRule', params)
