Newer
Older
Nanping_sponge_GCYPG / src / api / system / file.js
@liyingjing liyingjing on 25 Oct 2023 1002 bytes 工程预评估
import request from "@/utils/request";

// 查询附件列表
export function fileList(data) {
  return request({
    url: "/system/list",
    method: "post",
    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 upLoad(data) {
  return request({
    url: "/system/upload",
    method: "post",
    data: data,
  });
}

// 新增附件
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",
  });
}