Common enemy rework
This commit is contained in:
@@ -41,6 +41,7 @@ from app.schemas.assignment import (
|
||||
SpinResult,
|
||||
CompleteResult,
|
||||
DropResult,
|
||||
EventAssignmentResponse,
|
||||
)
|
||||
from app.schemas.activity import (
|
||||
ActivityResponse,
|
||||
@@ -107,6 +108,7 @@ __all__ = [
|
||||
"SpinResult",
|
||||
"CompleteResult",
|
||||
"DropResult",
|
||||
"EventAssignmentResponse",
|
||||
# Activity
|
||||
"ActivityResponse",
|
||||
"FeedResponse",
|
||||
|
||||
@@ -48,3 +48,14 @@ class DropResult(BaseModel):
|
||||
penalty: int
|
||||
total_points: int
|
||||
new_drop_count: int
|
||||
|
||||
|
||||
class EventAssignmentResponse(BaseModel):
|
||||
"""Response for event-specific assignment (Common Enemy)"""
|
||||
assignment: AssignmentResponse | None
|
||||
event_id: int | None
|
||||
challenge_id: int | None
|
||||
is_completed: bool
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
Reference in New Issue
Block a user