import request from '@/utils/request'

// 物业人员管理 API

/** 人员列表查询 */
export function queryPropertyUsers(params) {
  return request({ url: '/app/property.queryUsers', method: 'post', data: params })
}

/** 轨迹查询 */
export function queryLocationTracks(params) {
  return request({ url: '/app/property.queryLocationTracks', method: 'post', data: params })
}

/** 打卡记录查询 */
export function queryAttendanceRecords(params) {
  return request({ url: '/app/property.queryAttendanceRecords', method: 'post', data: params })
}

/** 巡更记录查询 */
export function queryPatrolRecords(params) {
  return request({ url: '/app/property.queryPatrolRecords', method: 'post', data: params })
}

/** 保洁记录查询 */
export function queryCleaningRecords(params) {
  return request({ url: '/app/property.queryCleaningRecords', method: 'post', data: params })
}

/** 工单查询 */
export function queryRepairOrders(params) {
  return request({ url: '/app/property.queryRepairOrders', method: 'post', data: params })
}

/** 更新工单状态 */
export function updateRepairStatus(params) {
  return request({ url: '/app/property.updateRepairStatus', method: 'post', data: params })
}

/** 消息通知查询 */
export function queryMessages(params) {
  return request({ url: '/app/property.queryMessages', method: 'post', data: params })
}

/** 标记消息已读 */
export function readMessage(params) {
  return request({ url: '/app/property.readMessage', method: 'post', data: params })
}
