Product purchase
This commit is contained in:
@ -6,7 +6,14 @@ from typing import Optional, TypeVar
|
||||
from pydantic import Field
|
||||
from pydantic.generics import GenericModel
|
||||
|
||||
from hopper.api.dto import BaseModel, BoardDto, DestinationDto, PlayerDto, PositionDto
|
||||
from hopper.api.dto import (
|
||||
BaseModel,
|
||||
BoardDto,
|
||||
DestinationDto,
|
||||
PlayerDto,
|
||||
PositionDto,
|
||||
ProductDto,
|
||||
)
|
||||
from hopper.enums import ObjectType
|
||||
|
||||
|
||||
@ -20,12 +27,6 @@ class LayerDto(BaseModel):
|
||||
objects: list[LayerObjectDto]
|
||||
|
||||
|
||||
class ProductDto(BaseModel):
|
||||
name: str
|
||||
uuid: str
|
||||
description: Optional[str] = None
|
||||
|
||||
|
||||
class GameDumpDto(BaseModel):
|
||||
board: BoardDto
|
||||
destination: DestinationDto
|
||||
|
||||
Reference in New Issue
Block a user