刘涛 8c0a5f489d Initial commit: hulai admin API backend
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 22:01:23 +08:00

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