feat: update audit platform workspace

This commit is contained in:
wren
2026-05-25 09:50:01 +08:00
parent ba8e93c0d3
commit 68d0b4c878
73 changed files with 12196 additions and 367 deletions
@@ -76,7 +76,9 @@ class CrossReviewController(BaseController):
"""查询当前用户参与的交叉评查任务。"""
if not await self._check_permission(int(payload["user_id"]), [self._PERMISSIONS["task_read"]]):
return JSONResponse(status_code=403, content={"code": 403, "msg": "当前用户没有查看交叉评查任务权限", "data": None})
Data = await self.CrossReviewService.GetUserTasks(CurrentUserId=int(payload["user_id"]), Body=Body)
UserId = int(payload["user_id"])
CanViewProgress = await self._check_permission(UserId, [self._PERMISSIONS["progress_view"]])
Data = await self.CrossReviewService.GetUserTasks(CurrentUserId=UserId, Body=Body, CanViewProgress=CanViewProgress)
return Result.success(data=Data)
@self.router.get("/tasks/{TaskId}/progress", response_model=Result[CrossReviewTaskProgressVO])