feat(课堂看板): 接口给做对了的格子带上今天每一次代码提交和第几次做对
原来今天最后一次提交只给没做对的格子;现在同一条查询取今天全部,做对了的格子 多带 trail(从早到晚的 id / 结果 / 时间)和 acceptedTry(今天第几次做对, 以前就做对了的为 null)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
38360e8668
commit
940895f643
2 files changed
+29
-11
No files matched your search
@@ -121,6 +121,13 @@ export const classBoardCellSchema = z.object({
|
||||
sampleCheck: statisticInfoSchema.shape.sample_check,
|
||||
})
|
||||
.nullable(),
|
||||
/**
|
||||
* 做对了的格子:今天交的每一次代码,从早到晚(范围和 latest 一样)。点格子看他是怎么一次次
|
||||
* 做对的,停在哪一次看哪次的代码。没做对的为空 —— 那边点开是讲错误,靠 latest
|
||||
*/
|
||||
trail: z.array(z.object({ id: z.string(), result: judgeStatusSchema, createTime: z.string() })),
|
||||
/** 今天第几次代码提交做对的,1 = 一次就对;今天之前就做对了、今天没靠代码做对的为 null */
|
||||
acceptedTry: z.number().int().nullable(),
|
||||
})
|
||||
|
||||
export const classBoardStudentSchema = z.object({
|
||||
|
||||
Reference in new issue
Block a user