feat(account-check): 增加履约账号 CK 保护目标
This commit is contained in:
@@ -1630,6 +1630,32 @@ class DouyuSupplyTargetOut(BaseModel):
|
||||
updated_at: datetime | None = None
|
||||
|
||||
|
||||
class DouyuAccountProtectionTargetUpdate(BaseModel):
|
||||
enabled: bool = True
|
||||
target_count: int = Field(0, ge=0, le=100_000)
|
||||
probe_interval_minutes: int = Field(60, ge=15, le=1440)
|
||||
auto_relogin: bool = True
|
||||
|
||||
|
||||
class DouyuAccountProtectionTargetOut(BaseModel):
|
||||
group_key: str
|
||||
label: str
|
||||
description: str
|
||||
enabled: bool
|
||||
target_count: int
|
||||
probe_interval_minutes: int
|
||||
auto_relogin: bool
|
||||
bound_count: int
|
||||
ck_valid: int
|
||||
ck_invalid: int
|
||||
ck_error: int
|
||||
ck_unchecked: int
|
||||
without_cookie: int
|
||||
target_shortage: int
|
||||
probe_due_count: int
|
||||
needs_attention: bool
|
||||
|
||||
|
||||
class PlatformFulfillmentMappingUpsert(BaseModel):
|
||||
internal_sku_key: str = Field(..., min_length=1, max_length=255)
|
||||
campaign_key: str = Field(default="douyu-current", min_length=1, max_length=128)
|
||||
|
||||
Reference in New Issue
Block a user