feat:完成数据文件上传解析及测试

This commit is contained in:
2026-10-09 06:42:28 -07:00
parent bb6a9405db
commit 4a6ec6d28c
11 changed files with 393 additions and 38 deletions
+4 -1
View File
@@ -21,7 +21,10 @@ class UpdateAction(BaseAction):
path: list[PathSegment] = Field(
description='字段路径第一段之后的各段,字符串为对象键,整数为数组下标;name 没有后续路径,传空列表。例如字段 props.option.title.text 写成 section=props、path=["option", "title", "text"]'
)
value: JsonValue = Field(description="替换该字段的值,必须符合字段定义的类型和取值")
value: JsonValue = Field(
description="替换该字段的值,必须符合字段定义的类型和取值;"
'可以写成 {"$query": "SELECT ..."},后端替换成上传数据的查询结果(对象数组,键是结果的列名)'
)
@model_validator(mode="after")
def path_matches_section(self) -> Self: