api-key.js
928 Bytes
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
import request from "@/utils/request";
// 删除用户key
// POST
// /applyKey/deleteKey/{id}
export function deleteKey(id) {
return request({
url: "/bus-customer/applyKey/deleteKey/" + id,
method: "post",
});
}
// 申请key
// /applyKey/generateKey
export function generateKey(params) {
return request({
url: `/bus-customer/applyKey/generateKey`,
method: "post",
data: params.toString(),
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
});
}
// 获取用户key列表
// POST
// /applyKey/queryKeyList
export function queryKeyList(data) {
return request({
url: "/bus-customer/applyKey/queryKeyList",
method: "post",
data: data,
});
}
// 修改用户key相关信息
// POST
// /applyKey/updateKeyInfo
export function updateKeyInfo(data) {
return request({
url: "/bus-customer/applyKey/updateKeyInfo",
method: "post",
data: data,
});
}