发布(0.4.6): 修复预售兑换记录判定与详情展示并新增工作台强制发放

This commit is contained in:
yml
2026-11-27 14:50:45 +08:00
parent 5006367217
commit e25e35994d
22 changed files with 1118 additions and 38 deletions
+26
View File
@@ -1850,6 +1850,7 @@ class DouyuTaskBatchRequest(BaseModel):
payload: dict[str, Any] = Field(default_factory=dict)
platform_task_id: int | None = Field(None, gt=0)
recharge_confirmation_token: str | None = Field(None, max_length=64)
force_occupied: bool = False
class DouyuWorkbenchAccountsUpdate(BaseModel):
@@ -3093,3 +3094,28 @@ class DouyuCollabTimelineOut(BaseModel):
detail: str = ""
success: bool | None = None
created_at: datetime | None = None
class DouyuCollabExchangeRecordItemOut(BaseModel):
commodity_id: str = ""
commodity_name: str = ""
score: int | None = None
exchange_num: int = 1
show_name: str = ""
role_name: str = ""
pic: str = ""
occurred_at: datetime | None = None
matched: bool = False
match_reason: str = ""
class DouyuCollabExchangeRecordsOut(BaseModel):
order_id: int
account_id: int | None = None
account_username: str = ""
refreshed: bool = False
synced_at: datetime | None = None
total: int = 0
matched_count: int = 0
error: str = ""
records: list[DouyuCollabExchangeRecordItemOut] = []