添加引导词和投递模板
This commit is contained in:
@@ -97,6 +97,7 @@ class SessionStartIn(BaseModel):
|
||||
city: str
|
||||
salary_min: Optional[int] = None
|
||||
salary_max: Optional[int] = None
|
||||
prompt: Optional[str] = None
|
||||
|
||||
|
||||
class SessionOut(BaseModel):
|
||||
@@ -106,6 +107,7 @@ class SessionOut(BaseModel):
|
||||
city: Optional[str]
|
||||
salary_min: Optional[int]
|
||||
salary_max: Optional[int]
|
||||
prompt: Optional[str]
|
||||
applied_count: int
|
||||
skipped_count: int
|
||||
started_at: datetime
|
||||
@@ -156,6 +158,41 @@ class ApplicationOut(BaseModel):
|
||||
from_attributes = True
|
||||
|
||||
|
||||
# =======================================================
|
||||
# 投递条件模板
|
||||
# =======================================================
|
||||
class TemplateIn(BaseModel):
|
||||
name: str = Field(..., min_length=1, max_length=128, description="模板名称")
|
||||
keywords: Optional[str] = Field(None, max_length=512, description="搜索关键词(逗号分隔)")
|
||||
city: Optional[str] = Field(None, max_length=20, description="城市")
|
||||
salary_min: Optional[int] = None
|
||||
salary_max: Optional[int] = None
|
||||
min_score: int = Field(65, ge=0, le=100, description="AI 最低匹配分")
|
||||
daily_limit: int = Field(0, ge=0, description="每日投递上限(0=不限)")
|
||||
boss_online_only: bool = False
|
||||
allow_headhunter: bool = False
|
||||
prompt: Optional[str] = None
|
||||
|
||||
|
||||
class TemplateOut(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
keywords: Optional[str]
|
||||
city: Optional[str]
|
||||
salary_min: Optional[int]
|
||||
salary_max: Optional[int]
|
||||
min_score: int
|
||||
daily_limit: int
|
||||
boss_online_only: bool
|
||||
allow_headhunter: bool
|
||||
prompt: Optional[str]
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
|
||||
# =======================================================
|
||||
# 公司黑名单
|
||||
# =======================================================
|
||||
|
||||
Reference in New Issue
Block a user