rescueApi.js 2.01 KB
/*
 * @Author: yangming yangming@didihu.com.cn
 * @Date: 2023-01-03 14:26:10
 * @LastEditors: yangming yangming@didihu.com.cn
 * @LastEditTime: 2023-01-04 11:03:13
 * @FilePath: \miniprogram\api\rescueApi.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import api from '../request/http'
module.exports = {
  /** 获取道路救援卡小程序客户页面接口 */
  getRescueCustomerView(data) {
    return api.post(
      {
        method: "entmicro.api.drac.rescue.getRescueCustomerView",
        ...data,
      },
      true
    );
  },
  rescueSave(data) {
    return api.post({
      method: `entmicro.api.drac.rescue.card.scan.record.save`,
      ...data,
    });
  },
  // 道路救援卡小程序重新定位接口
  rescueReacquireLocation(data) {
    return api.post(
      {
        method: "entmicro.api.drac.rescue.rescueReacquireLocation",
        ...data,
      },
      true
    );
  },

  /** 车主绑定挪车码 */
  bindMovecode(data) {
    return api.post({
      method: "entmicro.api.drac.rescue.move.car.code.bind",
      ...data,
    });
  },
  /** 挪车码校验是否被绑定 */
  checkMovecode(data) {
    return api.post({
      method: "entmicro.api.drac.rescue.move.car.code.check",
      ...data,
    });
  },

  /** 挪车码绑定信息获取 */
  getRescueinfo(data) {
    return api.post(
      {
        method: "entmicro.api.drac.rescue.move.car.code.bind.get",
        ...data,
      },
      true
    );
  },

  /** 修改挪车码绑定信息 */
  getUpdateRescueinfo(data) {
    return api.post(
      {
        method: "entmicro.api.drac.rescue.move.car.code.bind.update",
        ...data,
      },
      true
    );
  },
  // 调用百度接口绑定车主和X虚拟号码(返回值为虚拟号码X)
  rescueMoveCarBindAx(data) {
    return api.post(
      {
        method: "entmicro.api.drac.rescue.move.car.code.bind.ax",
        ...data,
      },
      true
    );
  },
};