Producs on FE
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
from dataclasses import dataclass, field
|
||||
import uuid
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Optional
|
||||
|
||||
|
||||
@dataclass
|
||||
class Product:
|
||||
name: str
|
||||
uuid: str = field(default_factory=lambda: str(uuid.uuid4()))
|
||||
description: Optional[str] = None
|
||||
|
||||
@ -8,7 +8,6 @@ from pydantic.generics import GenericModel
|
||||
|
||||
from hopper.api.dto import BaseModel, BoardDto, DestinationDto, PlayerDto, PositionDto
|
||||
from hopper.enums import ObjectType
|
||||
from hopper.models.product import Product
|
||||
|
||||
|
||||
class LayerObjectDto(BaseModel):
|
||||
@ -24,6 +23,7 @@ class LayerDto(BaseModel):
|
||||
class ProductDto(BaseModel):
|
||||
name: str
|
||||
uuid: str
|
||||
description: Optional[str] = None
|
||||
|
||||
|
||||
class GameDumpPlayerDto(PlayerDto):
|
||||
|
||||
Reference in New Issue
Block a user