feat: implement SQLite database management and Supabase integration for user authentication and points synchronization

This commit is contained in:
2569718930@qq.com
2026-05-19 18:07:39 +08:00
parent 0c2e22e770
commit a5c508cce8
8 changed files with 277 additions and 4 deletions
+6
View File
@@ -5,6 +5,7 @@ from fastapi import APIRouter, Request
from web.core import TelegramBindTokenRequest, TelegramLoginRequest
from web.services.auth_api import (
bind_telegram_by_token,
create_telegram_bot_bind_link,
get_auth_me_payload,
login_with_telegram,
)
@@ -25,3 +26,8 @@ async def auth_telegram_login(request: Request, body: TelegramLoginRequest):
@router.post("/api/auth/telegram/bind-by-token")
async def auth_telegram_bind_by_token(request: Request, body: TelegramBindTokenRequest):
return bind_telegram_by_token(request, body)
@router.post("/api/auth/telegram/bot-bind-link")
async def auth_telegram_bot_bind_link(request: Request):
return create_telegram_bot_bind_link(request)