feat: 增加桌面端登录、视频清单和封面缓存

This commit is contained in:
Nixevol
2026-09-27 03:57:00 +08:00
parent 0c1e04464a
commit cc930cd1ed
69 changed files with 9895 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
from fastapi import APIRouter
from server.errors import call
from server.schemas import AdbBody, GuestBody, PasswordBody, device_payload
from server.services.login import login
router = APIRouter(prefix="/api/login")
@router.post("/guest")
def login_guest(body: GuestBody | None = None):
raw = device_payload(body.device) if body else None
return call(lambda: login.guest(raw))
@router.post("/password")
def login_password(body: PasswordBody):
return call(lambda: login.password(body.email, body.password, device_payload(body.device)))
@router.post("/adb")
def login_adb(body: AdbBody):
return call(lambda: login.adb(
body.serial,
body.adb,
body.device_source,
device_payload(body.device),
))