"""配置相关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