// 物业管理员
import http from '@/apis/axios'
const api = 'admin/'
export default {
  // 分页查询
  list: (data, params) => http(api + 'notelist', data, 'post', params),
  // 添加
  add: (data, params) => http(api + 'notecreate', data, 'post', params),
  // 详情
  detail: (data, params) => http(api + 'noteinfo', data, 'post', params),
  // 编辑
  update: (data, params) => http(api + 'noteedit', data, 'post', params),
  // 删除
  delete: (data, params) => http(api + 'delete', data, 'post', params),
  // 评论新建
  comAdd: (data, params) => http(api + 'cloudcreate', data, 'post', params),
  // 评论编辑
  comUpdate: (data, params) => http(api + 'cloudedit', data, 'post', params),
  // 获取评论列表
  cloudlist: (data, params) => http(api + 'cloudlist', data, 'post', params),
  // 删除评论
  comDel: (data, params) => http(api + 'clouddel', data, 'post', params),
  // 获取全部用户
  allUser: (data, params) => http(api + 'userall', data, 'post', params),
  // 获取处理人列表
  MUser: (data, params) => http(api + 'manangelist', data, 'post', params),
  // 获取处理人列表
  MUpdate: (data, params) => http(api + 'manangecreate', data, 'post', params)
}
