mirror of
https://github.com/BluemediaGER/ScanOS.git
synced 2024-11-14 05:25:29 +01:00
15 lines
320 B
Python
15 lines
320 B
Python
from pydantic import BaseModel
|
|
from typing import Optional
|
|
import app.scanner.enums as scan
|
|
|
|
class ScanPage(BaseModel):
|
|
filename: Optional[str]
|
|
size_bytes: int
|
|
status: scan.PageStatus
|
|
|
|
class Config():
|
|
orm_mode = True
|
|
|
|
class ScanStatus(BaseModel):
|
|
pages: list[ScanPage]
|
|
status: scan.Status |