commit | author | age
|
6bcd13
|
1 |
import { axios } from '@/utils/request' |
I |
2 |
|
|
3 |
|
|
4 |
/** |
|
5 |
* 上传文件 |
|
6 |
* |
|
7 |
* @author yubaoshan |
|
8 |
* @date 2020/6/30 00:20 |
|
9 |
*/ |
|
10 |
export function sysFileInfoUpload (parameter) { |
|
11 |
return axios({ |
|
12 |
url: '/sysFileInfo/upload', |
|
13 |
method: 'post', |
|
14 |
data: parameter |
|
15 |
}) |
|
16 |
} |
|
17 |
|
|
18 |
/** |
|
19 |
* 下载文件 |
|
20 |
* |
|
21 |
* @author yubaoshan |
|
22 |
* @date 2020/6/30 00:20 |
|
23 |
*/ |
|
24 |
export function sysFileInfoDownload (parameter) { |
|
25 |
return axios({ |
|
26 |
url: '/sysFileInfo/download', |
|
27 |
method: 'get', |
|
28 |
params: parameter, |
|
29 |
responseType: 'blob' |
|
30 |
}) |
|
31 |
} |
|
32 |
|
|
33 |
/** |
|
34 |
* 查看图片 |
|
35 |
* |
|
36 |
* @author yubaoshan |
|
37 |
* @date 2020/6/30 00:20 |
|
38 |
*/ |
|
39 |
export function sysFileInfoPreview (parameter) { |
|
40 |
return axios({ |
|
41 |
url: '/sysFileInfo/preview', |
|
42 |
method: 'get', |
|
43 |
params: parameter, |
|
44 |
responseType: 'arraybuffer' |
|
45 |
}) |
|
46 |
} |
|
47 |
|