在前后端开发联调前 的提交20260223

This commit is contained in:
Neo
2026-02-23 23:02:20 +08:00
parent 254ccb1e77
commit fafc95e64c
1142 changed files with 10366960 additions and 36957 deletions

View File

@@ -0,0 +1,19 @@
"""
会员生日手动补录相关 Pydantic 模型。
- MemberBirthdaySubmit助教提交会员生日请求体
"""
from datetime import date
from pydantic import BaseModel, Field
class MemberBirthdaySubmit(BaseModel):
"""助教提交会员生日请求。"""
member_id: int = Field(..., gt=0, description="会员 ID")
birthday_value: date = Field(..., description="生日日期")
assistant_id: int = Field(..., gt=0, description="助教 ID")
assistant_name: str = Field(..., min_length=1, max_length=50, description="助教姓名")
site_id: int = Field(..., gt=0, description="门店 ID")

View File

@@ -13,8 +13,8 @@ class TaskConfigSchema(BaseModel):
"""任务配置 — 前后端传输格式
字段与 CLI 参数的映射关系:
- pipeline → --pipelineFlow ID7 种之一)
- processing_mode → --processing-mode3 种处理模式)
- flow → --flowFlow ID7 种之一)
- processing_mode → --processing-mode4 种处理模式)
- tasks → --tasks逗号分隔
- dry_run → --dry-run布尔标志
- window_mode → 决定使用 lookback 还是 custom 时间窗口(仅前端逻辑,不直接映射 CLI 参数)
@@ -30,7 +30,8 @@ class TaskConfigSchema(BaseModel):
"""
tasks: list[str]
pipeline: str = "api_ods_dwd"
# CHANGE [2026-02-20] intent: pipeline → flow统一命名消除历史别名
flow: str = "api_ods_dwd"
processing_mode: str = "increment_only"
dry_run: bool = False
window_mode: str = "lookback"