init : 初始化仓库

This commit is contained in:
2024-08-18 22:21:18 +08:00
commit 934b3b7b74
366 changed files with 55148 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
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",
});
};