fix(douyu): 修复供给目标缺少 target_id

This commit is contained in:
yml
2026-11-22 01:08:03 +08:00
parent 5f5a9a0bbe
commit b57fe16e0c
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -698,6 +698,7 @@ def _supply_target_out(
inventory = evaluate_supply_target(db, target)
return DouyuSupplyTargetOut(
id=int(target.id),
target_id=int(target.id),
platform=target.platform,
scope=target.scope,
commodity_id=target.commodity_id,
+2
View File
@@ -1603,6 +1603,8 @@ class DouyuSupplyTargetUpdate(BaseModel):
class DouyuSupplyTargetOut(BaseModel):
id: int
# 2026-11-22:平台状态接口使用 target_id,配置列表使用 id;同时返回兼容两者。
target_id: int
platform: str
scope: str
commodity_id: str