apply-interface.ts
1.07 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
import axios from "axios";
import qs from "qs";
/**
* 查询数据接口列表
* @param params 查询参数
* @returns 结果
*/
export function listApplyInterface(params: any) {
return axios.get("/system/apply-interface/list", {
params,
paramsSerializer: (obj) => {
return qs.stringify(obj);
}
});
}
/**
* 查询数据接口详细
* @param id 数据接口ID
* @returns 结果
*/
export function getApplyInterface(id: any) {
return axios.get("/system/apply-interface/" + id);
}
/**
* 新增数据接口
* @param data 数据接口对象
* @returns 0失败 1成功
*/
export function addApplyInterface(data: any) {
return axios.post("/system/apply-interface", data);
}
/**
* 修改数据接口
* @param data 数据接口对象
* @returns 0失败 1成功
*/
export function updateApplyInterface(data: any) {
return axios.put("/system/apply-interface", data);
}
/**
* 删除数据接口
* @param id 数据接口ID
* @returns 0失败 1成功
*/
export function delApplyInterface(id: any) {
return axios.delete("/system/apply-interface/" + id);
}