commit | author | age
|
9bcb19
|
1 |
import { axios } from '@/utils/request' |
I |
2 |
|
|
3 |
/** |
|
4 |
* 分页查询文件信息表 |
|
5 |
* |
|
6 |
* @author yubaoshan |
|
7 |
* @date 2020/6/30 00:20 |
|
8 |
*/ |
|
9 |
export function sysFileInfoPage (parameter) { |
|
10 |
return axios({ |
|
11 |
url: '/sysFileInfo/page', |
|
12 |
method: 'get', |
|
13 |
params: parameter |
|
14 |
}) |
|
15 |
} |
|
16 |
|
|
17 |
/** |
|
18 |
* 获取全部文件信息表 |
|
19 |
* |
|
20 |
* @author yubaoshan |
|
21 |
* @date 2020/6/30 00:20 |
|
22 |
*/ |
|
23 |
export function sysFileInfoList (parameter) { |
|
24 |
return axios({ |
|
25 |
url: '/sysFileInfo/list', |
|
26 |
method: 'get', |
|
27 |
params: parameter |
|
28 |
}) |
|
29 |
} |
|
30 |
|
|
31 |
/** |
|
32 |
* 上传文件 |
|
33 |
* |
|
34 |
* @author yubaoshan |
|
35 |
* @date 2020/6/30 00:20 |
|
36 |
*/ |
|
37 |
export function sysFileInfoUpload (parameter) { |
|
38 |
return axios({ |
|
39 |
url: '/sysFileInfo/upload', |
|
40 |
method: 'post', |
|
41 |
data: parameter |
|
42 |
}) |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* 下载文件 |
|
47 |
* |
|
48 |
* @author yubaoshan |
|
49 |
* @date 2020/6/30 00:20 |
|
50 |
*/ |
|
51 |
export function sysFileInfoDownload (parameter) { |
|
52 |
return axios({ |
|
53 |
url: '/sysFileInfo/download', |
|
54 |
method: 'get', |
|
55 |
params: parameter, |
|
56 |
responseType: 'blob' |
|
57 |
}) |
|
58 |
} |
|
59 |
|
|
60 |
/** |
|
61 |
* 查看图片 |
|
62 |
* |
|
63 |
* @author yubaoshan |
|
64 |
* @date 2020/6/30 00:20 |
|
65 |
*/ |
|
66 |
export function sysFileInfoPreview (parameter) { |
|
67 |
return axios({ |
|
68 |
url: '/sysFileInfo/preview', |
|
69 |
method: 'get', |
|
70 |
params: parameter, |
|
71 |
responseType: 'arraybuffer' |
|
72 |
}) |
|
73 |
} |
|
74 |
|
|
75 |
/** |
|
76 |
* 查看详情文件信息表 |
|
77 |
* |
|
78 |
* @author yubaoshan |
|
79 |
* @date 2020/6/30 00:20 |
|
80 |
*/ |
|
81 |
export function sysFileInfoDetail (parameter) { |
|
82 |
return axios({ |
|
83 |
url: '/sysFileInfo/detail', |
|
84 |
method: 'get', |
|
85 |
params: parameter |
|
86 |
}) |
|
87 |
} |
|
88 |
|
|
89 |
/** |
|
90 |
* 删除文件信息表 |
|
91 |
* |
|
92 |
* @author yubaoshan |
|
93 |
* @date 2020/6/30 00:20 |
|
94 |
*/ |
|
95 |
export function sysFileInfoDelete (parameter) { |
|
96 |
return axios({ |
|
97 |
url: '/sysFileInfo/delete', |
|
98 |
method: 'post', |
|
99 |
data: parameter |
|
100 |
}) |
|
101 |
} |
|
102 |
|
|
103 |
/** |
|
104 |
* 获取在线文档配置 |
|
105 |
* |
|
106 |
* @author yubaoshan |
|
107 |
* @date 2020/6/30 00:20 |
|
108 |
*/ |
|
109 |
export function sysFileInfoGetOnlineConfig (parameter) { |
|
110 |
return axios({ |
|
111 |
url: '/sysFileInfo/getOnlineFileConfig', |
|
112 |
method: 'get', |
|
113 |
params: parameter |
|
114 |
}) |
|
115 |
} |