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 |
/** |
105729
|
19 |
* 自定义文件上传 |
I |
20 |
*/ |
|
21 |
export function myFileInfoUpload (parameter) { |
|
22 |
return axios({ |
|
23 |
url: '/outside/sysFileInfo/upload', |
|
24 |
method: 'post', |
|
25 |
data: parameter |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
/** |
6bcd13
|
30 |
* 下载文件 |
I |
31 |
* |
|
32 |
* @author yubaoshan |
|
33 |
* @date 2020/6/30 00:20 |
|
34 |
*/ |
|
35 |
export function sysFileInfoDownload (parameter) { |
|
36 |
return axios({ |
|
37 |
url: '/sysFileInfo/download', |
|
38 |
method: 'get', |
|
39 |
params: parameter, |
|
40 |
responseType: 'blob' |
|
41 |
}) |
|
42 |
} |
|
43 |
|
|
44 |
/** |
|
45 |
* 查看图片 |
|
46 |
* |
|
47 |
* @author yubaoshan |
|
48 |
* @date 2020/6/30 00:20 |
|
49 |
*/ |
|
50 |
export function sysFileInfoPreview (parameter) { |
|
51 |
return axios({ |
|
52 |
url: '/sysFileInfo/preview', |
|
53 |
method: 'get', |
|
54 |
params: parameter, |
|
55 |
responseType: 'arraybuffer' |
|
56 |
}) |
|
57 |
} |
|
58 |
|