Initial commit: 000-platform project skeleton
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
26
backend/app/schemas/config.py
Normal file
26
backend/app/schemas/config.py
Normal 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
|
||||
Reference in New Issue
Block a user