Newer
Older
KaiFengPC / src / api / system / file.js
@鲁yixuan 鲁yixuan on 19 Aug 863 bytes updata
import request from '@/utils/request';

// 搜索附件列表
export function fileList(data) {
  return request({
    url: '/system/list',
    method: 'get',
    data: data,
  });
}
// 搜索附件分页
export function filePage(query) {
  return request({
    url: '/system/page',
    method: 'get',
    params: query,
  });
}
// 搜索附件详细
export function getFile(id) {
  return request({
    url: '/system/' + id,
    method: 'get',
  });
}

// 新增附件
export function addConfig(data) {
  return request({
    url: '/system/add',
    method: 'post',
    data: data,
  });
}
// 批量新增附件
export function addBatchConfig(data) {
  return request({
    url: '/system/add',
    method: 'post',
    data: data,
  });
}
// 删除附件
export function delConfig(ids) {
  return request({
    url: '/system/' + ids,
    method: 'delete',
  });
}