33 lines
449 B
Python
33 lines
449 B
Python
from schemas.base import BaseSchema
|
|
|
|
# region Entity
|
|
|
|
|
|
class ModuleTabSchema(BaseSchema):
|
|
id: int
|
|
key: str
|
|
label: str
|
|
icon_name: str
|
|
device: str
|
|
|
|
|
|
class ModuleSchema(BaseSchema):
|
|
id: int
|
|
key: str
|
|
label: str
|
|
description: str
|
|
depends_on: list["ModuleSchema"]
|
|
tabs: list[ModuleTabSchema]
|
|
|
|
|
|
# endregion
|
|
|
|
# region Response
|
|
|
|
|
|
class GetAllModulesResponse(BaseSchema):
|
|
items: list[ModuleSchema]
|
|
|
|
|
|
# endregion
|