This is model for sorted products on site
It consists of:
Category Name
Category id
Catygory value id
9 lines
145 B
Python
9 lines
145 B
Python
from pydantic import BaseModel
|
|
from dataclasses import dataclass
|
|
|
|
@dataclass
|
|
class CParams(BaseModel):
|
|
id: int
|
|
name: str
|
|
val_id: str
|