open-law/app/schema/breadcrumbs.py
SvyatoslavArtymovych 74314948d1 breadcrumbs splitter
2023-05-30 16:30:14 +03:00

23 lines
418 B
Python

import enum
from pydantic import BaseModel
class BreadCrumbType(enum.StrEnum):
"""Bread Crumb Type"""
MyBookList = "MyBookList"
AuthorBookList = "AuthorBookList"
Collection = "Collection"
Section = "Section"
Interpretation = "Interpretation"
Splitter = "Splitter"
class BreadCrumb(BaseModel):
"""Bread Crumb for navigation"""
label: str
url: str
type: BreadCrumbType