1
0

merge aigpt

This commit is contained in:
2025-06-02 18:24:43 +09:00
parent 6dbe630b9d
commit 6cd8014f80
16 changed files with 850 additions and 368 deletions

View File

@ -7,7 +7,7 @@ from app.models.card import Card, CardDraw, CardDrawResult
from app.services.gacha import GachaService
from app.repositories.user import UserRepository
from app.repositories.card import CardRepository, UniqueCardRepository
from app.db.base import get_db
from app.db.base import get_session
router = APIRouter(prefix="/cards", tags=["cards"])
@ -15,7 +15,7 @@ router = APIRouter(prefix="/cards", tags=["cards"])
@router.post("/draw", response_model=CardDrawResult)
async def draw_card(
draw_request: CardDraw,
db: AsyncSession = Depends(get_db)
db: AsyncSession = Depends(get_session)
):
"""
カードを抽選する
@ -65,7 +65,7 @@ async def get_user_cards(
user_did: str,
skip: int = 0,
limit: int = 100,
db: AsyncSession = Depends(get_db)
db: AsyncSession = Depends(get_session)
):
"""
ユーザーの所有カード一覧を取得
@ -100,7 +100,7 @@ async def get_user_cards(
@router.get("/unique")
async def get_unique_cards(db: AsyncSession = Depends(get_db)):
async def get_unique_cards(db: AsyncSession = Depends(get_session)):
"""
全てのuniqueカード一覧を取得所有者情報付き
"""