feat(后台 AI 报告): 报告列表带上学生是哪个班的

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-13 14:11:07 +08:00
1 parent 32f7bcaf8b
commit 09e5e0bfcf
2 files changed
+5

No files matched your search

+3
View File
@@ -24,6 +24,7 @@ function excerpt(analysis: string | null) {
function listItem(row: {
id: number
username: string
className: string | null
createTime: string
analysis: string
isPinned: boolean
@@ -31,6 +32,7 @@ function listItem(row: {
return {
id: row.id,
username: row.username,
className: row.className,
createTime: row.createTime,
analysisExcerpt: excerpt(row.analysis),
isPinned: row.isPinned,
@@ -40,6 +42,7 @@ function listItem(row: {
const listColumns = {
id: schema.aiAnalysis.id,
username: schema.user.username,
className: schema.user.className,
createTime: schema.aiAnalysis.createTime,
analysis: schema.aiAnalysis.analysis,
isPinned: schema.aiAnalysis.isPinned,
+2
View File
@@ -190,6 +190,8 @@ export const updateExerciseRequestSchema = createExerciseRequestSchema.omit({
export const adminAiReportListItemSchema = z.object({
id: z.number().int(),
username: z.string(),
/** 列表里名字旁边写是哪个班的 */
className: z.string().nullable(),
createTime: z.string(),
analysisExcerpt: z.string(),
isPinned: z.boolean(),