add endpoint create bonus

This commit is contained in:
2025-12-07 14:52:40 +05:00
parent 38f6b43718
commit f720b51c60
3 changed files with 49 additions and 1 deletions

View File

@ -2,6 +2,17 @@ from pydantic import BaseModel
from typing import Optional, List
from datetime import datetime
class CreateBonusType(BaseModel):
name: str
description: str
effect_type: str
base_effect_value: float
effect_increment: float
price: int
upgrade_price: int
duration: int # в секундах
max_level: int = 0
class PurchaseBonus(BaseModel):
username: str
bonus_type_id: str