feat(后台 AI 报告): 报告列表带上学生是哪个班的
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
32f7bcaf8b
commit
09e5e0bfcf
2 files changed
+5
No files matched your search
@@ -24,6 +24,7 @@ function excerpt(analysis: string | null) {
|
|||||||
function listItem(row: {
|
function listItem(row: {
|
||||||
id: number
|
id: number
|
||||||
username: string
|
username: string
|
||||||
|
className: string | null
|
||||||
createTime: string
|
createTime: string
|
||||||
analysis: string
|
analysis: string
|
||||||
isPinned: boolean
|
isPinned: boolean
|
||||||
@@ -31,6 +32,7 @@ function listItem(row: {
|
|||||||
return {
|
return {
|
||||||
id: row.id,
|
id: row.id,
|
||||||
username: row.username,
|
username: row.username,
|
||||||
|
className: row.className,
|
||||||
createTime: row.createTime,
|
createTime: row.createTime,
|
||||||
analysisExcerpt: excerpt(row.analysis),
|
analysisExcerpt: excerpt(row.analysis),
|
||||||
isPinned: row.isPinned,
|
isPinned: row.isPinned,
|
||||||
@@ -40,6 +42,7 @@ function listItem(row: {
|
|||||||
const listColumns = {
|
const listColumns = {
|
||||||
id: schema.aiAnalysis.id,
|
id: schema.aiAnalysis.id,
|
||||||
username: schema.user.username,
|
username: schema.user.username,
|
||||||
|
className: schema.user.className,
|
||||||
createTime: schema.aiAnalysis.createTime,
|
createTime: schema.aiAnalysis.createTime,
|
||||||
analysis: schema.aiAnalysis.analysis,
|
analysis: schema.aiAnalysis.analysis,
|
||||||
isPinned: schema.aiAnalysis.isPinned,
|
isPinned: schema.aiAnalysis.isPinned,
|
||||||
|
|||||||
@@ -190,6 +190,8 @@ export const updateExerciseRequestSchema = createExerciseRequestSchema.omit({
|
|||||||
export const adminAiReportListItemSchema = z.object({
|
export const adminAiReportListItemSchema = z.object({
|
||||||
id: z.number().int(),
|
id: z.number().int(),
|
||||||
username: z.string(),
|
username: z.string(),
|
||||||
|
/** 列表里名字旁边写是哪个班的 */
|
||||||
|
className: z.string().nullable(),
|
||||||
createTime: z.string(),
|
createTime: z.string(),
|
||||||
analysisExcerpt: z.string(),
|
analysisExcerpt: z.string(),
|
||||||
isPinned: z.boolean(),
|
isPinned: z.boolean(),
|
||||||
|
|||||||
Reference in new issue
Block a user