feat:物料存入数据库
This commit is contained in:
@@ -81,7 +81,6 @@ class ComponentCatalog(ExtensibleModel):
|
||||
version: NonBlankString = Field(
|
||||
description="前端组件目录版本,后续用于检查是否与前端匹配"
|
||||
)
|
||||
source: NonBlankString = Field(description="真实定义来源,例如前端组件注册文件路径")
|
||||
components: list[ComponentDefinition]
|
||||
|
||||
@model_validator(mode="after")
|
||||
@@ -106,7 +105,6 @@ class ComponentResult(ExtensibleModel):
|
||||
status: Literal["resolved", "not_found", "unsupported"]
|
||||
components: list[ComponentDefinition] = Field(default_factory=list)
|
||||
catalog_version: NonBlankString | None = None
|
||||
source: NonBlankString | None = None
|
||||
message: NonBlankString
|
||||
|
||||
def to_planner_context(self) -> JsonObject:
|
||||
@@ -114,7 +112,6 @@ class ComponentResult(ExtensibleModel):
|
||||
return {
|
||||
"status": self.status,
|
||||
"catalog_version": self.catalog_version,
|
||||
"source": self.source,
|
||||
"message": self.message,
|
||||
"components": [
|
||||
ComponentSummary(
|
||||
|
||||
Reference in New Issue
Block a user