feat(integration-connector): 新增集成连接器管理后台,支持关键字段拆列配置
This commit is contained in:
1 parent
bf30cddc4a
commit
1269e04116
28 files changed
+2909
-155
No files matched your search
@@ -84,6 +84,10 @@ class IntegrationClientInstance(Base):
|
||||
name: Mapped[str] = mapped_column(String(128), nullable=False)
|
||||
connector_type: Mapped[str] = mapped_column(String(16), nullable=False)
|
||||
environment: Mapped[str] = mapped_column(String(16), nullable=False, default='prod', server_default='prod')
|
||||
# 关键强类型字段独立列(JSON 保留作兜底;兼容层 binding.py 拼回 dict)。
|
||||
# endpoint = 连接地址:REST 为接口基地址,SOAP 为 WSDL 地址(WSDL 内含服务端点)。
|
||||
endpoint: Mapped[Optional[str]] = mapped_column(String(512), nullable=True)
|
||||
timeout_seconds: Mapped[Optional[int]] = mapped_column(Integer, nullable=True)
|
||||
config_json: Mapped[dict[str, Any]] = mapped_column(JSON, nullable=False, default=dict)
|
||||
credential_ref_code: Mapped[Optional[str]] = mapped_column(
|
||||
ForeignKey('integration_credential_references.code'), nullable=True,
|
||||
@@ -119,6 +123,9 @@ class IntegrationInterfaceDefinition(Base):
|
||||
ForeignKey('integration_client_instances.code'), nullable=False,
|
||||
)
|
||||
connector_type: Mapped[str] = mapped_column(String(16), nullable=False)
|
||||
# 关键强类型字段独立列(JSON 保留作兜底)。
|
||||
http_method: Mapped[Optional[str]] = mapped_column(String(16), nullable=True)
|
||||
request_path: Mapped[Optional[str]] = mapped_column(String(512), nullable=True)
|
||||
request_spec_json: Mapped[dict[str, Any]] = mapped_column(JSON, nullable=False, default=dict)
|
||||
input_schema_json: Mapped[dict[str, Any]] = mapped_column(JSON, nullable=False, default=dict)
|
||||
response_mapping_json: Mapped[dict[str, Any]] = mapped_column(JSON, nullable=False, default=dict)
|
||||
@@ -153,6 +160,8 @@ class IntegrationBinding(Base):
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
capability: Mapped[str] = mapped_column(String(128), nullable=False)
|
||||
context_selector_json: Mapped[dict[str, Any]] = mapped_column(CONTEXT_SELECTOR_JSON, nullable=False, default=dict)
|
||||
# 最常用的 context 匹配键独立列(JSON 保留作兜底)。
|
||||
context_source_code: Mapped[Optional[str]] = mapped_column(String(64), nullable=True)
|
||||
client_instance_code: Mapped[str] = mapped_column(
|
||||
ForeignKey('integration_client_instances.code'), nullable=False,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user