feat(douyu): 支持外部协作单撤销并推荐账号

This commit is contained in:
yml
2026-11-20 13:02:40 +08:00
parent 1a49bcd481
commit 55021a683c
8 changed files with 1045 additions and 16 deletions
+43
View File
@@ -2599,6 +2599,49 @@ class DouyuCollabAccountRequest(BaseModel):
takeover_platform_lease: bool = False
class DouyuCollabAccountUnlinkRequest(BaseModel):
reason: str = Field(..., min_length=1, max_length=256)
expected_version: int | None = None
class DouyuCollabAccountRecommendRequest(BaseModel):
"""按当前订单礼包推荐可绑定账号;不会预占账号。"""
include_rebindable: bool = True
limit: int = Field(5, ge=1, le=10)
gift_name: str | None = Field(None, max_length=128)
commodity_id: str | None = Field(None, max_length=64)
required_points: int | None = Field(None, ge=0)
class DouyuCollabAccountCandidateOut(BaseModel):
account_id: int
account_username: str = ""
account_uid: str = ""
account_nickname: str = ""
ck_status: str = ""
role_status: str = ""
bind_game_role: str = ""
role_change_available_at: datetime | None = None
points: int | None = None
elite_opened: bool | None = None
match_type: str = ""
match_type_label: str = ""
ready: bool = False
reasons: list[str] = Field(default_factory=list)
class DouyuCollabAccountRecommendOut(BaseModel):
order_id: int
gift_name: str = ""
commodity_id: str = ""
required_points: int | None = None
include_rebindable: bool = True
scanned: int = 0
candidates: list[DouyuCollabAccountCandidateOut] = Field(default_factory=list)
message: str = ""
class DouyuCollabImagesRequest(BaseModel):
home_images: list[str] = Field(default_factory=list)
expected_version: int | None = None