南方宇合并测试
This commit is contained in:
@@ -4,6 +4,7 @@ from dao.employment import * # 导入dao层函数
|
||||
from schemas.employment import * # 导入schema模型
|
||||
from typing import List, Optional # 导入类型提示
|
||||
|
||||
|
||||
employments_router = APIRouter()
|
||||
|
||||
@employments_router.post("/employments", response_model=EmploymentResponse, summary="新增就业信息")
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ def delete_employment_logic(db: Session, emp_id: int):
|
||||
if not db_obj:
|
||||
return False
|
||||
# 设置逻辑删除标记为1
|
||||
db_obj.is_deleted = 1
|
||||
db_obj.is_deleted = 1 #or0
|
||||
# 提交事务
|
||||
db.commit()
|
||||
return True
|
||||
|
||||
@@ -2,6 +2,7 @@ from pydantic import BaseModel, Field
|
||||
from typing import Optional
|
||||
from datetime import date
|
||||
from decimal import Decimal
|
||||
# int
|
||||
|
||||
|
||||
class EmploymentCreate(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user