Files
000-platform/backend/app/schemas/config.py
111 daa8125c58
All checks were successful
continuous-integration/drone/push Build is passing
Initial commit: 000-platform project skeleton
2026-01-23 14:32:09 +08:00

27 lines
655 B
Python

"""配置相关Schema"""
from typing import Optional
from pydantic import BaseModel, Field
class ConfigRead(BaseModel):
"""配置读取请求"""
tenant_id: int = Field(..., description="租户ID")
config_type: str = Field(..., description="配置类型")
config_key: str = Field(..., description="配置键")
class ConfigValue(BaseModel):
"""配置值响应"""
config_type: str
config_key: str
config_value: Optional[str]
class ConfigWrite(BaseModel):
"""配置写入"""
tenant_id: int
config_type: str
config_key: str
config_value: str
encrypt: bool = False