fix(会商第三步): 流程图入库限 rwfx-A + 修复跳过报告生成流程图出现双调度中卡片
- 入库功能仅 rwfx-A(businessCode 6BF)深链会商模式提供,其它业务深链生成流程图不再出现入库按钮/询问 - 流程图抽取串行化:auto 自动出图与用户「跳过报告直接生成流程图」手动出图竞态时,先中止上一轮、复用/移除被取代气泡,保证任意时刻只有一张流程图卡片 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
04e6d0aa00
commit
893f1e6933
19 files changed
+559
-51
No files matched your search
@@ -35,6 +35,18 @@ router = APIRouter(prefix="/api/task-buttons", tags=["task-buttons"])
|
||||
# ── schemas ──────────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
class TaskButtonLoginParam(BaseModel):
|
||||
"""url 外链追加的登录参数(与应用管理一致)。
|
||||
|
||||
运行时由前端从 ``userInfo`` 解析:``source`` 为 ``userInfo`` 字段名
|
||||
(如 ``accessToken`` / ``yUserId``),``other`` 时取 ``custom_value`` 字面值。
|
||||
"""
|
||||
|
||||
key: str = Field(default="", max_length=64)
|
||||
source: str = Field(default="accessToken", max_length=64)
|
||||
custom_value: str = Field(default="", max_length=512)
|
||||
|
||||
|
||||
class TaskButton(BaseModel):
|
||||
id: str = Field(..., min_length=1, max_length=128)
|
||||
business: str = Field(..., min_length=1, max_length=32)
|
||||
@@ -48,6 +60,8 @@ class TaskButton(BaseModel):
|
||||
id_kind: str = Field(default="task", max_length=16)
|
||||
# url 外链打开方式:blank=新窗口(默认)/ self=当前窗口。
|
||||
open_mode: str = Field(default="blank", max_length=16)
|
||||
# url 外链追加的登录参数列表(key + 取值来源)。
|
||||
login_params: list[TaskButtonLoginParam] = Field(default_factory=list)
|
||||
enabled: bool = True
|
||||
sort_order: int = 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user