open-law/app/schema/breadcrumbs.py

22 lines
392 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"
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