20 行
392 B
Python
20 行
392 B
Python
from __future__ import annotations
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class ExportRequest(BaseModel):
|
|
modules: list[str] = ["all"]
|
|
trigger_rebuild: bool = False
|
|
|
|
|
|
class ExportLogResponse(BaseModel):
|
|
id: int
|
|
exported_by: str | None
|
|
modules: list[str] | None
|
|
status: str
|
|
message: str | None
|
|
created_at: str | None
|
|
|
|
class Config:
|
|
from_attributes = True
|