카테고리 페이지에 파일 목록 부분 구현

This commit is contained in:
static
2025-01-21 17:32:08 +09:00
parent efe2782db0
commit 88d4757cf7
9 changed files with 201 additions and 2 deletions

View File

@@ -17,6 +17,16 @@ export const categoryInfoResponse = z.object({
});
export type CategoryInfoResponse = z.infer<typeof categoryInfoResponse>;
export const categoryFileAddRequest = z.object({
file: z.number().int().positive(),
});
export type CategoryFileAddRequest = z.infer<typeof categoryFileAddRequest>;
export const categoryFileListResponse = z.object({
files: z.number().int().positive().array(),
});
export type CategoryFileListResponse = z.infer<typeof categoryFileListResponse>;
export const categoryCreateRequest = z.object({
parent: categoryIdSchema,
mekVersion: z.number().int().positive(),