Newer
Older
KaiFengPC / src / api / system / file.js
@zhangdeliang zhangdeliang on 12 Jun 863 bytes update
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',
  });
}