17 lines
338 B
Python
17 lines
338 B
Python
|
|
from pydantic import BaseModel
|
||
|
|
from typing import List, Dict, Any
|
||
|
|
|
||
|
|
class PdfRequest(BaseModel):
|
||
|
|
title: str
|
||
|
|
columns: List[str]
|
||
|
|
rows: List[List]
|
||
|
|
fileName: str
|
||
|
|
fileDesc: str
|
||
|
|
|
||
|
|
class UploadRequest(BaseModel):
|
||
|
|
title: str
|
||
|
|
path: str
|
||
|
|
rows: List[dict]
|
||
|
|
columns: List[str]
|
||
|
|
author: Dict[str, Any]
|
||
|
|
style: str
|