// 物业管理员
import http from '@/apis/axios'
const api = 'admin/'
export default {
  // 分页查询
  slist: (data, params) => http(api + 'supplerlist', data, 'post', params),
  // 添加
  add: (data, params) => http(api + 'addAccount', data, 'post', params),
  // 删除
  delete: (data, params) => http(api + 'deleteAccount', data, 'post', params),
  // 分页查询
  list: (data, params) => http(api + 'getAccountList', data, 'post', params),
  // 更新
  update: (data, params) => http(api + 'editAccount', data, 'post', params),
  // 修改状态
  status: (data, params) => http(api + 'statusAccount', data, 'post', params),
  // 详情
  detail: (data, params) => http(api + 'readAccount', data, 'post', params),
  // 修改密码
  setpwd: (data, params) => http(api + 'changePassword', data, 'post', params)
}
