"""激励模块请求模型""" from decimal import Decimal from pydantic import BaseModel, Field class BindInviteReq(BaseModel): """绑定邀请码(9.2)""" invite_code: str = Field(min_length=1, max_length=10) class WithdrawReq(BaseModel): """申请提现(9.5)""" assets: Decimal = Field(gt=0, le=Decimal("1000000"), max_digits=12, decimal_places=1) channel: int = Field(ge=1, le=3) # 1支付宝 2微信 3USDT account: str = Field(min_length=1, max_length=200)