breaking code down
All checks were successful
Build Authoring Service / build (push) Successful in 8s
All checks were successful
Build Authoring Service / build (push) Successful in 8s
This commit is contained in:
34
src/authoring_service/models.py
Normal file
34
src/authoring_service/models.py
Normal file
@@ -0,0 +1,34 @@
|
||||
"""Shared data models."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
@dataclass
|
||||
class OrgPage:
|
||||
path: str
|
||||
page_type: str
|
||||
title: str
|
||||
slug: str
|
||||
tags: list[str]
|
||||
content: str
|
||||
date: str
|
||||
comments: bool
|
||||
options: str
|
||||
wip: str | None = None
|
||||
|
||||
|
||||
@dataclass
|
||||
class ContentPage:
|
||||
path: str
|
||||
page_type: str
|
||||
title: str
|
||||
slug: str
|
||||
tags: list[str]
|
||||
content: str
|
||||
date: str
|
||||
comments: bool
|
||||
options: str
|
||||
format: str
|
||||
wip: str | None = None
|
||||
|
||||
Reference in New Issue
Block a user