Files
XCDesktop/api/schemas/pydemos.ts
2026-03-08 01:34:54 +08:00

22 lines
466 B
TypeScript

import { z } from 'zod'
export const listPyDemosQuerySchema = z.object({
year: z.string().optional(),
})
export const createPyDemoSchema = z.object({
name: z.string().min(1),
year: z.string().min(1),
month: z.string().min(1),
folderStructure: z.string().optional(),
})
export const deletePyDemoSchema = z.object({
path: z.string().min(1),
})
export const renamePyDemoSchema = z.object({
oldPath: z.string().min(1),
newName: z.string().min(1),
})