feat(video): add timestamp support to comments

This commit is contained in:
yiling
2026-05-27 11:17:56 +08:00
parent ad8f3931f7
commit c048ceef28
12 changed files with 158 additions and 20 deletions
+2
View File
@@ -189,6 +189,7 @@ export type CommentInfo = {
message: string | null
// eslint-disable-next-line @typescript-eslint/no-explicit-any
annotations: any
second: number | null
creator: UserInfo
replies: CommentInfo[]
attachments: AttachmentInfo[]
@@ -204,6 +205,7 @@ export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
message: z.string().nullable(),
annotations: z.any(),
second: z.number().nullable(),
creator: userInfoSchema,
replies: z.array(z.lazy(() => commentInfoSchema)),
attachments: z.array(attachmentInfoSchema),