perf(fulfillment): 优化本地能力选号查询与索引
This commit is contained in:
@@ -2608,11 +2608,13 @@ class HuyaExternalOrderAuditOut(BaseModel):
|
||||
|
||||
class DouyuCollabShopCreate(BaseModel):
|
||||
name: str = Field(..., min_length=1, max_length=64)
|
||||
aliases: list[str] = Field(default_factory=list)
|
||||
remark: str = Field("", max_length=255)
|
||||
|
||||
|
||||
class DouyuCollabShopUpdate(BaseModel):
|
||||
name: str | None = Field(None, min_length=1, max_length=64)
|
||||
aliases: list[str] | None = None
|
||||
sort_order: int | None = None
|
||||
is_active: bool | None = None
|
||||
remark: str | None = Field(None, max_length=255)
|
||||
@@ -2621,6 +2623,7 @@ class DouyuCollabShopUpdate(BaseModel):
|
||||
class DouyuCollabShopOut(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
aliases: list[str] = Field(default_factory=list)
|
||||
sort_order: int = 0
|
||||
is_active: bool = True
|
||||
remark: str = ""
|
||||
@@ -2705,7 +2708,7 @@ class DouyuCollabAccountLookupOut(BaseModel):
|
||||
|
||||
class DouyuCollabOrderCreate(BaseModel):
|
||||
order_no: str = Field(..., min_length=1, max_length=64)
|
||||
shop: str = Field("", max_length=64)
|
||||
shop: str = Field("", max_length=128)
|
||||
owner_id: int | None = None
|
||||
account_username: str = Field("", max_length=128)
|
||||
gift_name: str = Field("", max_length=128)
|
||||
@@ -2720,7 +2723,7 @@ class DouyuCollabOrderCreate(BaseModel):
|
||||
|
||||
class DouyuCollabOrderUpdate(BaseModel):
|
||||
order_no: str | None = Field(None, max_length=64)
|
||||
shop: str | None = Field(None, max_length=64)
|
||||
shop: str | None = Field(None, max_length=128)
|
||||
owner_id: int | None = None
|
||||
account_username: str | None = Field(None, max_length=128)
|
||||
gift_name: str | None = Field(None, max_length=128)
|
||||
@@ -2876,6 +2879,7 @@ class DouyuCollabOrderOut(BaseModel):
|
||||
id: int
|
||||
order_no: str
|
||||
shop: str = ""
|
||||
shop_original_name: str = ""
|
||||
owner_id: int | None = None
|
||||
owner_name: str = ""
|
||||
source_type: str = "manual"
|
||||
|
||||
Reference in New Issue
Block a user