import _axios from "@/utils/request";
export default {
  // 日历日期及节假日查询
  multiList: (data) => _axios.fetch("/holiday/multi", data, "POST"),
  // 单日期查询节假日
  singleList: (data) => _axios.fetch("/holiday/single", data, "POST"),
  // 考勤记录查询
  recordList: (data) => _axios.fetch("/oa/record", data, "POST"),
  // 打卡
  clockIn: (data) => _axios.fetch("/oa/clock-in", data, "POST"),
  // // 查询打卡班次 (旧)
  // workingTimeBest: data => _axios.fetch('/oa/working-time/best', data, 'POST'),
  // 查询打卡班次 (新)
  workingTimeBest: (data) =>
    _axios.fetch("/oa/v2/workingTime-info", data, "GET"),
  // 当前时间点是否是正常打卡
  actionTimeType: (data) => _axios.fetch("/oa/action-type", data, "GET"),
  // 某一天打卡详情
  recordDetail: (data) => _axios.fetch("/oa/record/single", data, "POST"),
  // 设置查询 -ip
  settingDetail: (data) => _axios.fetch("/oa/config/detail", data, "POST"),
  // 异常
  abnormalList: (data) => _axios.fetch("/oa/abnormal", data, "POST"),
  // 月考勤
  collection: (data) =>
    _axios.fetch("/oa/staff/collection-single", data, "POST"),
  // 月考勤详情
  collectionDetail: (data) =>
    _axios.fetch("/oa/staff/collection-detail", data, "POST"),
  // 历史申请-请假
  applyList: (data) => _axios.fetch("/oa/apply/list", data, "POST"),
  // 经纬度地址
  addressObj: (data) => _axios.fetch("/address/address-detail", data, "POST"),
  // 是否是外勤外出判断
  outWorkCheck: (data) => _axios.fetch("/oa/out-work-check", data, "POST"),
  // 外出-回归打卡
  outWorkClock: (data) => _axios.fetch("/oa/out-work-check/add", data, "POST"),
  // 检查WIFI
  checkWiFi: (data) => _axios.fetch("/oa/check-wifi", data, "POST"),
  // 假期余额查详情
  balanceinfo: (data) =>
    _axios.fetch("/oa/leave-balance/balance-sick-info", data, "POST"),
};
