更新 API 接口和数据源管理逻辑,调整参数类型,新增表格定义字段,优化请求路径,更新登录组件密码

This commit is contained in:
2026-06-11 17:26:39 +08:00
parent 85845b0d38
commit 61577be41f
4 changed files with 552 additions and 230 deletions

View File

@@ -12,7 +12,7 @@ export interface ApiInterfaceQueryParams {
// 创建接口参数
export interface CreateApiInterfaceParams {
platformId: string | number;
platformId: number;
name: string;
code: string;
url: string;
@@ -22,6 +22,7 @@ export interface CreateApiInterfaceParams {
requestConfig?: Record<string, any>;
responseConfig?: Record<string, any>;
limitConfig?: Record<string, any>;
tableDefinition?: Record<string, any>;
}
// 更新接口参数
@@ -50,6 +51,7 @@ export interface ApiInterfaceInfo {
requestConfig?: Record<string, any>;
responseConfig?: Record<string, any>;
limitConfig?: Record<string, any>;
tableDefinition?: Record<string, any>;
createdBy?: string;
createdAt?: number;
updatedBy?: string;
@@ -59,7 +61,7 @@ export interface ApiInterfaceInfo {
// 获取接口列表
export function listApiInterfaces(params: ApiInterfaceQueryParams) {
return request({
url: '/api/interface/controller/listApiInterfaces',
url: '/data-engine/api/interface/controller/listApiInterfaces',
method: 'get',
params,
});
@@ -68,7 +70,7 @@ export function listApiInterfaces(params: ApiInterfaceQueryParams) {
// 获取接口详情
export function getApiInterface(id: string) {
return request({
url: '/api/interface/controller/getApiInterface',
url: '/data-engine/api/interface/controller/getApiInterface',
method: 'get',
params: { id },
});
@@ -77,7 +79,7 @@ export function getApiInterface(id: string) {
// 创建接口
export function createApiInterface(data: CreateApiInterfaceParams) {
return request({
url: '/api/interface/controller/createApiInterface',
url: '/data-engine/api/interface/controller/createApiInterface',
method: 'post',
data,
});
@@ -86,7 +88,7 @@ export function createApiInterface(data: CreateApiInterfaceParams) {
// 修改接口
export function updateApiInterface(data: UpdateApiInterfaceParams) {
return request({
url: '/api/interface/controller/updateApiInterface',
url: '/data-engine/api/interface/controller/updateApiInterface',
method: 'put',
data,
});
@@ -95,7 +97,7 @@ export function updateApiInterface(data: UpdateApiInterfaceParams) {
// 更新接口状态
export function updateApiInterfaceStatus(data: UpdateApiInterfaceStatusParams) {
return request({
url: '/api/interface/controller/updateApiInterfaceStatus',
url: '/data-engine/api/interface/controller/updateApiInterfaceStatus',
method: 'put',
data,
});
@@ -104,7 +106,7 @@ export function updateApiInterfaceStatus(data: UpdateApiInterfaceStatusParams) {
// 删除接口
export function deleteApiInterface(id: string) {
return request({
url: '/api/interface/controller/deleteApiInterface',
url: '/data-engine/api/interface/controller/deleteApiInterface',
method: 'delete',
params: { id },
});