PC端
This commit is contained in:
@@ -113,6 +113,7 @@ class StartApplyReq(BaseModel):
|
||||
delay_max: int = 8
|
||||
boss_online_only: bool = False
|
||||
daily_limit: int = 0
|
||||
allow_headhunter: bool = False
|
||||
|
||||
|
||||
class ResumeUpdateReq(BaseModel):
|
||||
@@ -391,6 +392,7 @@ def start_apply(req: StartApplyReq):
|
||||
delay_range=(req.delay_min, req.delay_max),
|
||||
boss_online_only=req.boss_online_only,
|
||||
daily_limit=req.daily_limit,
|
||||
allow_headhunter=req.allow_headhunter,
|
||||
)
|
||||
return {"ok": True, "session_id": applicant.session_id}
|
||||
|
||||
|
||||
@@ -377,6 +377,7 @@ $('btnStartApply').addEventListener('click', async () => {
|
||||
salary_max: parseInt($('salaryMax').value) || null,
|
||||
min_score: parseInt($('minScore').value) || 65,
|
||||
boss_online_only: $('bossOnlineOnly').checked,
|
||||
allow_headhunter: $('allowHeadhunter').checked,
|
||||
daily_limit: parseInt($('dailyLimit').value) || 0,
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Boss直聘 AI 智能投递</title>
|
||||
<link rel="stylesheet" href="/static/style.css?v=2">
|
||||
<link rel="stylesheet" href="/static/style.css?v=3">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@@ -123,6 +123,9 @@
|
||||
<label style="display:flex;align-items:center;gap:6px;margin:0;cursor:pointer;">
|
||||
<input type="checkbox" id="bossOnlineOnly" style="width:auto;"> 只投递 Boss 在线的
|
||||
</label>
|
||||
<label style="display:flex; align-items:center; gap:6px; margin-top:8px;">
|
||||
<input type="checkbox" id="allowHeadhunter" style="width:auto;"> 考虑猎头职位
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="action-buttons">
|
||||
@@ -176,6 +179,6 @@
|
||||
<!-- Toast 提示 -->
|
||||
<div class="toast" id="toast"></div>
|
||||
|
||||
<script src="/static/app.js?v=2"></script>
|
||||
<script src="/static/app.js?v=3"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user