fix(subscribe): synchronize queue contracts

This commit is contained in:
jxxghp
2026-09-05 18:29:07 +08:00
parent 7672e8ff00
commit 821d7301de
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ class TransactionalSubscriptionSearchRepository:
async with self._async_session_factory() as session:
unit_of_work = SqlAlchemyAsyncUnitOfWork(session)
try:
result = await session.run_sync(
result: T = await session.run_sync(
lambda sync_session: operation(SubscriptionSearchOper(sync_session))
)
await unit_of_work.commit()
@@ -3546,7 +3546,7 @@
"owner": "host-ui",
"path": "/api/v1/subscribe/execution/batches",
"reason": "Background subscription execution status and cancellation are owned by the authenticated frontend workflow; they are not yet a stable Agent gateway contract.",
"summary": "查订阅搜索批次状态",
"summary": "查订阅搜索进度",
"tags": [
"subscribe"
]
@@ -3558,7 +3558,7 @@
"owner": "host-ui",
"path": "/api/v1/subscribe/execution/batches/{batch_id}",
"reason": "Background subscription execution status and cancellation are owned by the authenticated frontend workflow; they are not yet a stable Agent gateway contract.",
"summary": "查订阅搜索批次",
"summary": "查看一次订阅搜索",
"tags": [
"subscribe"
]
@@ -3570,7 +3570,7 @@
"owner": "host-ui",
"path": "/api/v1/subscribe/execution/batches/{batch_id}/cancel",
"reason": "Background subscription execution status and cancellation are owned by the authenticated frontend workflow; they are not yet a stable Agent gateway contract.",
"summary": "取消订阅搜索批次",
"summary": "停止一次订阅搜索",
"tags": [
"subscribe"
]
+3 -3
View File
@@ -305,9 +305,9 @@
| `POST` | `/api/v1/subscribe/` | subscribe | `gateway` | subscription.add | 新增订阅 |
| `PUT` | `/api/v1/subscribe/` | subscribe | `gateway` | subscription.update | 更新订阅 |
| `POST` | `/api/v1/subscribe/check` | subscribe | `gateway` | subscription.metadata.refresh | 刷新订阅 TMDB 信息 |
| `GET` | `/api/v1/subscribe/execution/batches` | subscribe | `ui_presentation` | host-ui | 查订阅搜索批次状态 |
| `GET` | `/api/v1/subscribe/execution/batches/{batch_id}` | subscribe | `ui_presentation` | host-ui | 查订阅搜索批次 |
| `PUT` | `/api/v1/subscribe/execution/batches/{batch_id}/cancel` | subscribe | `ui_presentation` | host-ui | 取消订阅搜索批次 |
| `GET` | `/api/v1/subscribe/execution/batches` | subscribe | `ui_presentation` | host-ui | 查订阅搜索进度 |
| `GET` | `/api/v1/subscribe/execution/batches/{batch_id}` | subscribe | `ui_presentation` | host-ui | 查看一次订阅搜索 |
| `PUT` | `/api/v1/subscribe/execution/batches/{batch_id}/cancel` | subscribe | `ui_presentation` | host-ui | 停止一次订阅搜索 |
| `GET` | `/api/v1/subscribe/files/{subscribe_id}` | subscribe | `gateway` | subscription.files | 订阅相关文件信息 |
| `DELETE` | `/api/v1/subscribe/follow` | subscribe | `gateway` | subscription.follow.delete | 取消Follow订阅分享人 |
| `GET` | `/api/v1/subscribe/follow` | subscribe | `gateway` | subscription.follow.list | 查询已Follow的订阅分享人 |