88d2b57c7a
- 新增 app_config 表 + model/repository/config_schema + admin config 路由与 schema + 测试 - rewards.py 及 ad_reward/signin/task/wallet/comparison_milestone repositories 接入可配置项;ad.py / admin/main.py 配套 - alembic merge(ebb6af5c0b56)合并本地 app_config(cfg1a2b3c4d5)与 incoming price_report/best_deeplink(b7e2c1a9f4d3)两 head Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
466 B
Python
23 lines
466 B
Python
"""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
|
|
help: str | None = None
|
|
default: Any
|
|
value: Any
|
|
overridden: bool # 是否被运营覆盖过(false=用默认)
|
|
updated_at: str | None = None
|
|
|
|
|
|
class ConfigUpdateRequest(BaseModel):
|
|
value: Any
|