匹配评分 加简历id
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
from fastapi import APIRouter, Depends
|
||||
|
||||
from app.core.asserts import Assert
|
||||
from app.core.auth import func_permission
|
||||
from app.core.context import RequestContext
|
||||
from app.core.database import get_db
|
||||
@@ -13,11 +14,12 @@ router = APIRouter(prefix="/job-agent", tags=["求职助手agent"])
|
||||
|
||||
@router.post("/match-score", summary="岗位匹配度评分")
|
||||
async def match_score(param: MatchScoreParam):
|
||||
"""根据定制简历和岗位,从技能/学历/经验维度评估匹配度,返回 0-100 分"""
|
||||
"""根据定制简历或原始简历和岗位,从技能/学历/经验维度评估匹配度,返回 0-100 分"""
|
||||
Assert.is_true(param.customize_resume_id is not None or param.resume_id is not None, "customizeResumeId 和 resumeId 至少传一个")
|
||||
user_id = RequestContext.user_id.get()
|
||||
async for session in get_db():
|
||||
service = JobAgentChatService(session)
|
||||
result = await service.score_match(user_id, param.customize_resume_id, param.job_id)
|
||||
result = await service.score_match(user_id, param.job_id, param.customize_resume_id, param.resume_id)
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user