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