01ef3c9637
- 新建 api/schemas/:auth/agents/admin/ecosystem/investor/opc/operator/org/portals - models.py 移除 15 个 Pydantic DTO(保留 ORM 数据模型层) - 13 个路由内联 DTO 全部迁出,路由瘦身仅剩处理逻辑 - 全量 66 测试通过
34 lines
672 B
Python
34 lines
672 B
Python
from pydantic import BaseModel
|
|
|
|
class PreferenceRequest(BaseModel):
|
|
industries: list[str] = []
|
|
stage: str = ""
|
|
amount_min: int = 0
|
|
amount_max: int = 0
|
|
region_id: str | None = None
|
|
|
|
|
|
|
|
class IntentRequest(BaseModel):
|
|
project_id: str
|
|
project_name: str = ""
|
|
message: str = ""
|
|
|
|
|
|
|
|
class RoadshowCreate(BaseModel):
|
|
title: str
|
|
summary: str = ""
|
|
activity_type: str = "online" # online/offline/hybrid
|
|
scope_type: str = "all" # all/region/org
|
|
region_id: str | None = None
|
|
start_at: str = ""
|
|
end_at: str = ""
|
|
register_deadline: str = ""
|
|
quota: int = 0
|
|
venue: str = ""
|
|
live_url: str = ""
|
|
|
|
|
|
|