"""admin 运营配置 schemas。"""
from __future__ import annotations

from typing import Any

from pydantic import BaseModel


class ConfigItemOut(BaseModel):
    key: str
    label: str
    group: str
    type: str  # int / int_list / dict_str_int / bool
    help: str | None = None
    default: Any
    value: Any
    overridden: bool  # 是否被运营覆盖过(false=用默认)
    updated_at: str | None = None


class ConfigUpdateRequest(BaseModel):
    value: Any
