This commit is contained in:
27942
2026-03-01 23:21:31 +08:00
parent 3d71ad9ec7
commit 72111af7b4
2 changed files with 7 additions and 6 deletions

View File

@@ -1,11 +1,12 @@
# -*- coding: utf-8 -*-
"""
BOSS 账号 API需要登录
- POST /api/accounts -> 添加账号(绑定环境名称到电脑)
- GET /api/accounts -> 查询所有账号(含电脑名称、在线、任务状态)
- POST /api/accounts/fill-boss-ids -> 批量填充缺失的 boss_id触发 check_login
- GET /api/accounts/{id} -> 查询单个账号详情
- DELETE /api/accounts/{id} -> 删除账号
- POST /api/accounts -> 添加账号(绑定环境名称到电脑)
- GET /api/accounts -> 查询所有账号(含电脑名称、在线、任务状态)
- POST /api/accounts/fill-boss-ids -> 批量填充缺失的 boss_id触发 check_login
- GET /api/accounts/{id} -> 查询单个账号详情(按账号主键 ID
- DELETE /api/accounts/{id} -> 删除账号
- GET /api/accounts/worker/{worker_id} -> 查询某个 Worker 的所有账号
检测登录等操作统一通过 POST /api/tasks 提交task_type 传 check_login 即可。
"""

View File

@@ -27,8 +27,8 @@ urlpatterns = [
# ─── 账号 ───
path("api/accounts", accounts.account_list),
path("api/accounts/fill-boss-ids", accounts.fill_boss_ids),
path("api/accounts/worker/<str:worker_id>", accounts.account_list_by_worker),
path("api/accounts/<int:account_id>", accounts.account_detail),
path("api/accounts/<str:worker_id>", accounts.account_list_by_worker),
# ─── 筛选配置 ───
path("api/filters", filters.filter_list),