|
|
@@ -34,12 +34,12 @@ export const DateNotesSchema = z.object({
|
|
|
|
|
|
export const CreateDateNotesDto = z.object({
|
|
|
code: z.string().max(255).openapi({ description: '股票代码', example: '001339' }),
|
|
|
- noteDate: z.date().openapi({ description: '备注日期', example: '2024-11-07T08:00:00Z' }),
|
|
|
+ noteDate: z.coerce.date().openapi({ description: '备注日期', example: '2024-11-07T08:00:00Z' }),
|
|
|
note: z.string().max(255).openapi({ description: '备注内容', example: 'test01' })
|
|
|
});
|
|
|
|
|
|
export const UpdateDateNotesDto = z.object({
|
|
|
code: z.string().max(255).optional().openapi({ description: '股票代码', example: '001339' }),
|
|
|
- noteDate: z.date().optional().openapi({ description: '备注日期', example: '2024-11-07T08:00:00Z' }),
|
|
|
+ noteDate: z.coerce.date().optional().openapi({ description: '备注日期', example: '2024-11-07T08:00:00Z' }),
|
|
|
note: z.string().max(255).optional().openapi({ description: '备注内容', example: 'test01' })
|
|
|
});
|