38 lines
671 B
JavaScript
38 lines
671 B
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询字典数据列表
|
||
|
export function listData(query) {
|
||
|
return request({
|
||
|
url: '/system/dict/data/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增文件列表
|
||
|
export function addFileList(data) {
|
||
|
return request({
|
||
|
url: '/system/fileList',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改字典数据
|
||
|
export function updateData(data) {
|
||
|
return request({
|
||
|
url: '/system/dict/data',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
//获取七牛文件上传token
|
||
|
export function getQNtoken(data) {
|
||
|
return request({
|
||
|
url: '/qiniufile/getQNtoken',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|