Files
2026-10-15 20:36:59 +08:00

19 lines
501 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""激励模块请求模型"""
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)