// 账号
import http from '@/apis/axios'
const api = 'admin/'
export default {
  // 分页查询
  list: (data, params) => http(api + 'ulist', data, 'post', params),
  // 详情
  detail: (data, params) => http(api + 'query', data, 'post', params),
  // 更新
  update: (data, params) => http(api + 'refresh', data, 'post', params),
  // 添加
  add: (data, params) => http(api + 'add', data, 'post', params),
  // 删除
  delete: (data, params) => http(api + 'itemdel', data, 'post', params),
  // 修改状态
  status: (data, params) => http(api + 'stat', data, 'post', params),
  // 拉取角色列表
  getRole: (data, params) => http(api + 'roleall', data, 'post', params),
  // 设置部门负责人
  userp: (data, params) => http(api + 'userp', data, 'post', params),

}
