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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
| import { axios } from '@/utils/request'
|
| /**
| * 分页查询文件信息表
| *
| * @author yubaoshan
| * @date 2020/6/30 00:20
| */
| export function sysFileInfoPage (parameter) {
| return axios({
| url: '/sysFileInfo/page',
| method: 'get',
| params: parameter
| })
| }
|
| /**
| * 获取全部文件信息表
| *
| * @author yubaoshan
| * @date 2020/6/30 00:20
| */
| export function sysFileInfoList (parameter) {
| return axios({
| url: '/sysFileInfo/list',
| method: 'get',
| params: parameter
| })
| }
|
| /**
| * 上传文件
| *
| * @author yubaoshan
| * @date 2020/6/30 00:20
| */
| export function sysFileInfoUpload (parameter) {
| return axios({
| url: '/sysFileInfo/upload',
| method: 'post',
| data: parameter
| })
| }
|
| /**
| * 下载文件
| *
| * @author yubaoshan
| * @date 2020/6/30 00:20
| */
| export function sysFileInfoDownload (parameter) {
| return axios({
| url: '/sysFileInfo/download',
| method: 'get',
| params: parameter,
| responseType: 'blob'
| })
| }
|
| /**
| * 查看图片
| *
| * @author yubaoshan
| * @date 2020/6/30 00:20
| */
| export function sysFileInfoPreview (parameter) {
| return axios({
| url: '/sysFileInfo/preview',
| method: 'get',
| params: parameter,
| responseType: 'arraybuffer'
| })
| }
|
| /**
| * 查看详情文件信息表
| *
| * @author yubaoshan
| * @date 2020/6/30 00:20
| */
| export function sysFileInfoDetail (parameter) {
| return axios({
| url: '/sysFileInfo/detail',
| method: 'get',
| params: parameter
| })
| }
|
| /**
| * 删除文件信息表
| *
| * @author yubaoshan
| * @date 2020/6/30 00:20
| */
| export function sysFileInfoDelete (parameter) {
| return axios({
| url: '/sysFileInfo/delete',
| method: 'post',
| data: parameter
| })
| }
|
| /**
| * 获取在线文档配置
| *
| * @author yubaoshan
| * @date 2020/6/30 00:20
| */
| export function sysFileInfoGetOnlineConfig (parameter) {
| return axios({
| url: '/sysFileInfo/getOnlineFileConfig',
| method: 'get',
| params: parameter
| })
| }
|
|