增加删除推理集合接口

This commit is contained in:
2025-03-14 17:54:21 +08:00
parent 9e79fb6a6d
commit af65911db3
4 changed files with 123 additions and 52 deletions

View File

@ -190,6 +190,17 @@ def get_log_list(detect_id: int, session: Session):
return result
def get_logs(detect_id: int, session: Session):
"""
获取推理记录
:param detect_id:
:param session:
:return:
"""
query = session.query(ProjectDetectLog).filter_by(detect_id=detect_id).order_by(asc(ProjectDetectLog.id))
return query.all()
def get_log_pager(detect_log_pager: ProjectDetectLogPager, session: Session):
"""
获取分页数据