Initial commit: Базовая структура сайта
This commit is contained in:
16
backend/app/schemas/config.py
Executable file
16
backend/app/schemas/config.py
Executable file
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
Схемы для конфигурации
|
||||
"""
|
||||
from pydantic import BaseModel
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class ConfigResponse(BaseModel):
|
||||
key: str
|
||||
value: Optional[str] = None
|
||||
|
||||
|
||||
class ConfigUpdate(BaseModel):
|
||||
key: str
|
||||
value: Optional[str] = None
|
||||
|
||||
Reference in New Issue
Block a user