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
85
86
87
88
89
90
91
92
93
94
| import request from "@/plugin/axios/index.js";
| const fileApi = {
| // 获取pdf总页数
| getPdfTotalPage(data) {
| return request({
| url: "/file/GetPdfTotalPage",
| method: "post",
| data
| });
| },
|
| // 获取pdf、word、ppt等转图片预览
| getPdfInfo(data) {
| return request({
| url: "/file/GetPdfInfo",
| method: "post",
| data
| });
| },
| //获取pdf目录
| GetPdfToc(data) {
| return request({
| url: "/file/GetPdfToc",
| method: "post",
| data
| });
| },
| //获取文件
| getPdfPageImage(params) {
| return request({
| url: '/file/GetPdfPageImage',
| method: 'get',
| responseType: 'blob',
| params
| });
| },
| //上传文件
| upload(data) {
| return request({
| url: "/file/api/ApiUpload",
| method: "post",
| data
| });
| },
|
| // 获取阿里云加速地址
| getAliVod(data) {
| return request({
| url: "/file/GetAliVod",
| method: "post",
| data,
| });
| },
|
| downloadForAuthorize(params) {
| return request({
| url: '/file/api/ApiDownloadForAuthorize',
| method: 'GET',
| responseType: 'blob',
| params
| });
| },
| // 批量下载
| downloadFiles(data) {
| return request({
| url: '/file/api/ApiDownloadFiles',
| method: 'post',
| responseType: 'blob',
| data
| });
| },
|
| // 批量下载get
| getDownloadFiles (params) {
| return request({
| url: '/file/api/ApiGetDownloadFiles',
| method: 'GET',
| responseType: 'blob',
| headers:{
| 'md5s':params
| }
| });
| },
| // 发送下载邮件
| sendFileEmail (data) {
| return request({
| url:'/file/api/ApiSendFileWithEmail',
| method:'post',
| data
| })
| }
| }
|
| export default fileApi;
|
|