-
Notifications
You must be signed in to change notification settings - Fork 0
/
paper.js
42 lines (37 loc) · 841 Bytes
/
paper.js
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
import request from "@/utils/request";
export function getPaperList(queryInfo) {
return request({
url: "/data/paper/getPaperList",
method: "GET",
params: { ...queryInfo }
});
}
export function deletePaperById(id) {
return request({
url: "/data/paper/deletePaperById",
method: "DELETE",
params: { id },
});
}
export function deletePaperBatchByIds(ids) {
return request({
url: "/data/paper/deletePaperBatchByIds",
method: "DELETE",
params: { ids },
});
}
export function saveOrUpdate(form) {
return request({
url: "/data/paper/saveOrUpdate",
method: "POST",
data: form,
});
}
export function importDataBatch(file) {
return request({
url: "/data/paper/importDataBatch",
method: "POST",
header: { "Content-Type": "multipart/form-data" },
data: file,
});
}