// 物业管理员
import http from '@/apis/axios'
const api = 'Admin/'
export default {
  // 添加
  add: (data, params) => http(api + 'roleadd', data, 'post', params),
  // 删除
  delete: (data, params) => http(api + 'rolestatus', data, 'post', params),
  // 查询列表
  list: (data, params) => http(api + 'rolelist', data, 'post', params),
  // 详情
  detail: (data, params) => http(api + 'roleinfo', data, 'post', params),
  // 更新
  update: (data, params) => http(api + 'rolesave', data, 'post', params),

  // 修改状态
  status: (data, params) => http(api + 'rolestatus', data, 'post', params),
  // // 数据权限列表
  // dataList: (data, params) => http(api + "actiondata", data, "post", params),
  // 功能权限列表
  actionList: (data, params) => http(api + 'menuactionlist', data, 'post', params)
}
