Files
SmartOpsWeb/src/api/custom-query/portal.js
2024-08-21 11:03:31 +08:00

78 lines
1.4 KiB
JavaScript

import request from "@/utils/request.js";
export const getPortalList = (params) => {
return request({
url: "/custom/query/portal",
method: "get",
params,
});
};
// 自定义查询结果列表
export const getQueryList = (type) => {
return request({
url: "/custom/query/tool/option/" + type,
method: "get",
});
};
// 适配器列表
export const getAdapterList = (params) => {
return request({
url: "/custom/query/query/adapter",
method: "get",
params,
});
};
// 参数映射字段
export const getMapFields = (queryId) => {
return request({
url: "/custom/query/tool/con/" + queryId,
method: "get",
});
};
// 新增接口
export const addPortal = (data) => {
return request({
url: "/custom/query/portal",
method: "post",
data,
});
};
// 获取接口详情
export const getPortalDetail = (portalId) => {
return request({
url: "/custom/query/portal/" + portalId,
method: "get",
});
};
// 修改接口
export const updatePortal = (data) => {
return request({
url: "/custom/query/portal",
method: "put",
data,
});
};
// 删除接口
export const deletePortal = (portalId) => {
return request({
url: "/custom/query/portal/" + portalId,
method: "delete",
});
};
// 发布列表接口
export const publishPortal = (data) => {
return request({
url: "/custom/query/portal/list/publish",
method: "post",
data,
});
};