mirror of
https://github.com/BluemediaGER/ScanOS.git
synced 2024-11-12 21:05:28 +01:00
13 lines
254 B
Python
13 lines
254 B
Python
|
from pydantic import BaseModel
|
||
|
import app.scanner.enums as scan
|
||
|
|
||
|
class ScanPage(BaseModel):
|
||
|
filename: str
|
||
|
size_bytes: int
|
||
|
|
||
|
class Config():
|
||
|
orm_mode = True
|
||
|
|
||
|
class ScanStatus(BaseModel):
|
||
|
pages: list[ScanPage]
|
||
|
status: scan.Status
|