就业模块修改

This commit is contained in:
Corning Zhao
2026-09-14 12:12:29 +08:00
parent c392cd90e6
commit 71118806f1
4 changed files with 11 additions and 14 deletions
+2 -1
View File
@@ -16,7 +16,7 @@ def query_list(
skip: int = 0,
limit: int = 100,
company_name: Optional[str] = None,
db: Session = Depends(get_db),
db: Session = Depends(get_db)
):
return EmpDAO.list_emps(db, skip, limit, company_name)
@@ -54,3 +54,4 @@ def remove_emp(stu_no: str, db: Session = Depends(get_db)):
if not EmpDAO.delete_emp(db, stu_no):
raise HTTPException(status_code=404, detail="就业信息不存在")
return {"code": 200, "msg": "删除成功"}