在前后端开发联调前 的提交20260223
This commit is contained in:
19
apps/backend/app/schemas/member_birthday.py
Normal file
19
apps/backend/app/schemas/member_birthday.py
Normal 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")
|
||||
@@ -13,8 +13,8 @@ class TaskConfigSchema(BaseModel):
|
||||
"""任务配置 — 前后端传输格式
|
||||
|
||||
字段与 CLI 参数的映射关系:
|
||||
- pipeline → --pipeline(Flow ID,7 种之一)
|
||||
- processing_mode → --processing-mode(3 种处理模式)
|
||||
- flow → --flow(Flow ID,7 种之一)
|
||||
- processing_mode → --processing-mode(4 种处理模式)
|
||||
- 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"
|
||||
|
||||
Reference in New Issue
Block a user