// 功能权限
import http from '@/apis/axios'
const api = 'admin/role/'

const roleAPI = "admin/role_action/"
export default {
  // 详情
  detail: (data, params) => http(roleAPI + 'query', data, 'post', params),
  // 更新
  update: (data, params) => http(roleAPI + 'create', data, 'post', params),
  // 拉取角色列表
  getRole: (data, params) => http(api + 'query', data, 'post', params),
  // 功能权限列表
  actionList: (data, params) => http(roleAPI + 'menuaction', data, 'post', params)
}
