feat: 구름 합치기 라운드를 깰 때마다 2각(하루 20각), 탭바 없는 전체 화면, 1분 제한 없앰 — 판 시작 표(서명)로 남의 판·위조 거절, 레벨업 창은 판이 끝난 뒤
This commit is contained in:
1 parent
7d097a05de
commit
3df3e0113b
12 files changed
+414
-113
No files matched your search
@@ -4,7 +4,7 @@ from common.auth import current_user
|
||||
from common.database.model.models import User
|
||||
from common.enums import ErrorType
|
||||
from common.models.errors import error_info
|
||||
from router.v1.level.protocol import LevelAction, LevelStep, LevelUnlock, Res_Level
|
||||
from router.v1.level.protocol import LevelAction, LevelStep, LevelUnlock, Req_GameRound, Res_GameStart, Res_Level
|
||||
from services.level_service import LEVELS, LevelService, Status
|
||||
|
||||
router = APIRouter(prefix="/v1/level", tags=["level"])
|
||||
@@ -33,3 +33,13 @@ async def attend(user: User = Depends(current_user), service: LevelService = Dep
|
||||
@router.post("/share", response_model=Res_Level, response_model_exclude_none=True, summary="공유를 마쳤을 때 (하루 한 번 각)")
|
||||
async def shared(user: User = Depends(current_user), service: LevelService = Depends()) -> Res_Level:
|
||||
return _res(*await service.share(user))
|
||||
|
||||
|
||||
@router.post("/game/start", response_model=Res_GameStart, response_model_exclude_none=True, summary="날씨게임 한 판 시작 (라운드 각을 받을 표)")
|
||||
async def game_start(user: User = Depends(current_user), service: LevelService = Depends()) -> Res_GameStart:
|
||||
return Res_GameStart(play=service.game_start(user))
|
||||
|
||||
|
||||
@router.post("/game/round", response_model=Res_Level, response_model_exclude_none=True, summary="날씨게임 라운드를 깼을 때 (2각, 하루 20각)")
|
||||
async def game_round(req: Req_GameRound, user: User = Depends(current_user), service: LevelService = Depends()) -> Res_Level:
|
||||
return _res(*await service.game_round(user, req.play, req.round))
|
||||
Reference in new issue
Block a user