"""推广归因模块请求模型""" from pydantic import BaseModel, Field class InviteClickReq(BaseModel): """H5 中间页点击埋点""" code: str = Field(min_length=4, max_length=10) class InviteMatchReq(BaseModel): """App 首启归因上报(按设备指纹匹配点击记录)""" device_id: str = Field(min_length=8, max_length=64)