19 行
364 B
Python
19 行
364 B
Python
from __future__ import annotations
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class SiteImageSchema(BaseModel):
|
|
group_name: str
|
|
image_key: str
|
|
image_path: str
|
|
label: str | None = None
|
|
size_hint: str | None = None
|
|
description: str | None = None
|
|
|
|
|
|
class SiteImageResponse(SiteImageSchema):
|
|
id: int
|
|
|
|
class Config:
|
|
from_attributes = True
|