- import request from "@/utils/request";
-
- // 查询附件列表
- export function fileList(data) {
- return request({
- url: "/system/list",
- method: "get",
- params: 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",
- });
- }