init : 初始化仓库
This commit is contained in:
68
src/api/custom-query/portal.js
Normal file
68
src/api/custom-query/portal.js
Normal 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",
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user