const {
  request_wxrlxf
} = require("../func/request")
// 查询账号基础信息
const getInfo = (adminId) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/getInfo',
    data: {
      adminId
    },
    method: 'get',
    type: 'application/x-www-form-urlencoded'
  })
}

// 查询预约信息
const getAppointmentInfo = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/getAppointmentInfo',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}
// 查询可以预约的日期
const getTimeList = (adminId) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/getTimeList',
    data: {
      adminId
    },
    method: 'get',
    type: 'application/x-www-form-urlencoded'
  })
}
// 查询预约的时间段列表
const getTimeSlotList = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/getTimeSlotList',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}
// 查询是否可以进行实名认证
const selectAuthenticationAuthority = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/selectAuthenticationAuthority',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}
// 预约登记
const appointment = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/appointment',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}
// 修改人员信息
const updateUserInfo = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/updateUserInfo',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}
// 查看预约单
const lookAppointment = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/lookAppointment',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}
// 
const lookAppointmentRecord = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/lookAppointmentRecord',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}
// 取消预约
const cancelAppointment = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/cancelAppointment',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}
// OCR数据获取
const getPassportDetail = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/getPassportDetail',
    data: data,
    method: 'get',
    type: 'application/json'
  })
}
// 人证比对
const BaiDuFaceComparison = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/BaiDuFaceComparison',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}
// 外宾实名认证-修改
const foreignAuthentication = (data) => {
  return request_wxrlxf({
    url: '/api/appointmentApi/foreignAuthentication',
    data: data,
    method: 'post',
    type: 'application/json'
  })
}

module.exports = {
  getInfo,
  getAppointmentInfo,
  getTimeList,
  getTimeSlotList,
  selectAuthenticationAuthority,
  appointment,
  updateUserInfo,
  lookAppointment,
  lookAppointmentRecord,
  cancelAppointment,
  getPassportDetail,
  BaiDuFaceComparison,
  foreignAuthentication
}