"""admin 华为审核开关 schemas(两态:default / review)。"""
from __future__ import annotations

from typing import Literal

from pydantic import BaseModel


class HuaweiReviewOut(BaseModel):
    """当前开关状态。updated_at 给后台展示「谁什么时候切的」提供时间锚点。"""

    mode: Literal["default", "review"]
    updated_at: str | None = None  # ISO 字符串;从未切过为 None


class HuaweiReviewUpdate(BaseModel):
    """切换开关。整值覆盖,不做部分更新(就一个字段)。"""

    mode: Literal["default", "review"]
