chore(流程图): 注明 flowchart/current、history 两个接口为什么还留着、什么时候可以删
Deploy / deploy (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-09-28 18:50:05 +08:00
1 parent 1026b8f9a2
commit b4afcbd47f
1 file changed
+5
+5
View File
@@ -642,6 +642,11 @@ async function myEvaluatedFlowcharts(user: AuthUser, problemId: number) {
return { visible, hidden: rows.length - visible.length } return { visible, hidden: rows.length - visible.length }
} }
/*
* current / history:前端从 2026-09-28 起改用下面的 scores + GET /flowcharts/:id,不再调这两个。
* 先留着给上线那一刻还开着旧页面的浏览器(机房里一节课都不刷新是常态),下一次清理时删掉,
* 连同契约里的 flowchartCurrentSchema / flowchartDetailSchema。
*/
flowchartRoutes.get("/problems/:id/flowchart/current", requireAuth, async (c) => { flowchartRoutes.get("/problems/:id/flowchart/current", requireAuth, async (c) => {
const problemId = queryInteger(c.req.param("id"), 0, { min: 1 }) const problemId = queryInteger(c.req.param("id"), 0, { min: 1 })
const { visible } = await myEvaluatedFlowcharts(c.get("user")!, problemId) const { visible } = await myEvaluatedFlowcharts(c.get("user")!, problemId)