rescueApi.js
2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* @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
);
},
};