import http from '@/apis/axios'
const api = 'admin/'

export default {
  // 添加
  add: (data, params) => http(api + 'addDataGroup', data, 'post', params),
  // 删除
  delete: (data, params) => http(api + 'deleteDataGroup', data, 'post', params),
  // 分页查询
  list: (data, params) => http(api + 'getDataGroupList', data, 'post', params),
  // 详情
  detail: (data, params) => http(api + 'getDataGroupDetail', data, 'post', params),
  // 更新
  update: (data, params) => http(api + 'editDataGroup', data, 'post', params),
  // 修改状态
  status: (data, params) => http(api + 'statusDataGroup', data, 'post', params),
  // 获取全部账户列表getuserall
  accountall: (data, params) => http(api + 'userall', data, 'post', params)
}
