1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- import request from '@/utils/request'
- // 查询通用附件列表
- export function listCommonfile(query) {
- return request({
- url: '/common/commonfile/list',
- method: 'get',
- params: query
- })
- }
- // 查询不分页通用附件列表
- export function allFileList(query) {
- return request({
- url: '/common/commonfile/allFileList',
- method: 'get',
- params: query
- })
- }
- // 查询不分页通用附件列表(pType模糊查询)
- export function allFileListFuzzy(query) {
- return request({
- url: '/common/commonfile/allFileListFuzzy',
- method: 'get',
- params: query
- })
- }
- // 查询通用附件详细
- export function getCommonfile(id) {
- return request({
- url: '/common/commonfile/' + id,
- method: 'get'
- })
- }
- // 新增通用附件
- export function addCommonfile(data) {
- return request({
- url: '/common/commonfile',
- method: 'post',
- data: data
- })
- }
- // 修改通用附件
- export function updateCommonfile(data) {
- return request({
- url: '/common/commonfile',
- method: 'put',
- data: data
- })
- }
- // 删除通用附件
- export function delCommonfile(id) {
- return request({
- url: '/common/commonfile/' + id,
- method: 'delete'
- })
- }
- // 导出通用附件
- export function exportCommonfile(query) {
- return request({
- url: '/common/commonfile/export',
- method: 'get',
- params: query
- })
- }
|