open-law/app/schema/breadcrumbs.py

23 lines
418 B
Python
Raw Normal View History

2023-05-01 14:01:03 +00:00
import enum
2023-05-01 08:15:57 +00:00
from pydantic import BaseModel
2023-05-01 14:01:03 +00:00
class BreadCrumbType(enum.StrEnum):
"""Bread Crumb Type"""
MyBookList = "MyBookList"
AuthorBookList = "AuthorBookList"
Collection = "Collection"
Section = "Section"
Interpretation = "Interpretation"
2023-05-30 13:30:14 +00:00
Splitter = "Splitter"
2023-05-01 14:01:03 +00:00
class BreadCrumb(BaseModel):
"""Bread Crumb for navigation"""
2023-05-01 08:15:57 +00:00
2023-05-01 14:01:03 +00:00
label: str
url: str
type: BreadCrumbType