Initial commit: 000-platform project skeleton
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
111
2026-01-23 14:32:09 +08:00
commit daa8125c58
31 changed files with 1517 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
"""配置相关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