feat(weibo): 支持超级管理员强制恢复作废订单

This commit is contained in:
yml
2026-11-18 14:30:02 +08:00
parent 8f1b0e28bb
commit 96fa9c7086
6 changed files with 330 additions and 19 deletions
+4
View File
@@ -869,6 +869,8 @@ class WeiboCollabStatusRequest(BaseModel):
status: str = Field(..., min_length=1, max_length=20)
reason: str = Field("", max_length=256)
rollback: bool = False
# 仅超级管理员可用:从「已作废」强制恢复,必须同时填写 reason。
force: bool = False
expected_version: int | None = None
@@ -877,6 +879,8 @@ class WeiboCollabStatusBatchRequest(BaseModel):
status: str = Field(..., min_length=1, max_length=20)
reason: str = Field("", max_length=256)
rollback: bool = False
# 仅超级管理员可用;混合批次里只对 void 行生效,必须同时填写 reason。
force: bool = False
class WeiboCollabCkExportRequest(BaseModel):