// 物业管理员
import http from '@/apis/axios'
const api = 'admin/role/'

const actAPI = 'admin/role_action/'
export default {
  // 添加
  add: (data, params) => http(api + 'create', data, 'post', params),
  // 查询列表
  list: (data, params) => http(api + 'list', data, 'post', params),
  // 更新
  update: (data, params) => http(api + 'edit', data, 'post', params),
  // 修改状态
  status: (data, params) => http(api + 'status', data, 'post', params),
  delete: (data, params) => http(api + 'delete', data, 'post', params),

  // 功能权限列表
  actionList: (data, params) => http(actAPI + 'menuaction', data, 'post', params),
    // 详情
  detail: (data, params) => http(actAPI + 'query', data, 'post', params),
}
