feat: implement advanced reward management and wheel customization
- Add customizable background color - Add wheel animations and sound effects - Add reward description field and winner modal - Change font to Dana - Add configurable reward probabilities - Support reward types (Empty, Discount Code, LiveCoin) - Replace reward title with reward type selector - Allow wheel page title customization from admin panel
This commit is contained in:
@@ -1,20 +1,27 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
from typing import Optional
|
||||
|
||||
class ItemCreate(BaseModel):
|
||||
title: str
|
||||
value: int
|
||||
|
||||
prize: str
|
||||
description: Optional[str] = ""
|
||||
prize_type: str = "پوچ"
|
||||
probability: float = 1.0
|
||||
|
||||
class ItemUpdate(BaseModel):
|
||||
title: str
|
||||
value: int
|
||||
|
||||
prize: str
|
||||
description: Optional[str] = ""
|
||||
prize_type: str = "پوچ"
|
||||
probability: float = 1.0
|
||||
|
||||
class ItemResponse(BaseModel):
|
||||
id: int
|
||||
title: str
|
||||
value: int
|
||||
prize: str
|
||||
description: Optional[str] = ""
|
||||
prize_type: str
|
||||
probability: float
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
Reference in New Issue
Block a user