41 lines
544 B
Python
41 lines
544 B
Python
from schemas.base import BaseSchema
|
|
|
|
|
|
# region Entity
|
|
|
|
|
|
class AttrSelectSchema(BaseSchema):
|
|
id: int
|
|
label: str
|
|
is_built_in: bool
|
|
|
|
|
|
class AttrOptionSchema(BaseSchema):
|
|
id: int
|
|
label: str
|
|
|
|
|
|
class AttrSelectWithOptionsSchema(AttrSelectSchema):
|
|
options: list[AttrOptionSchema]
|
|
|
|
|
|
# endregion
|
|
|
|
# region Request
|
|
|
|
|
|
# endregion
|
|
|
|
# region Response
|
|
|
|
|
|
class GetAllAttrSelectsResponse(BaseSchema):
|
|
items: list[AttrSelectSchema]
|
|
|
|
|
|
class GetAllAttrSelectOptionsResponse(BaseSchema):
|
|
items: list[AttrOptionSchema]
|
|
|
|
|
|
# endregion
|