"""
配置API模型
"""
from pydantic import BaseModel
from typing import Optional, Any


class ConfigItem(BaseModel):
    key: str
    value: Any
    type: str
    category: str
    description: Optional[str] = None


class ConfigUpdate(BaseModel):
    value: Any
    type: Optional[str] = None
    category: Optional[str] = None
    description: Optional[str] = None
