|
|
@@ -48,8 +48,8 @@ export const CreateStockXunlianCodesDto = z.object({
|
|
|
stockName: z.string().max(255).openapi({ description: '股票名称', example: 'test01' }),
|
|
|
name: z.string().max(255).openapi({ description: '案例名称', example: 'test222' }),
|
|
|
type: z.string().max(255).nullable().openapi({ description: '案例类型', example: '技术分析' }),
|
|
|
- description: z.string().max(255).nullable().openapi({ description: '案例描述', example: '这是一个测试案例' }),
|
|
|
- tradeDate: z.date().openapi({ description: '交易日期', example: '2025-05-21T08:00:00Z' })
|
|
|
+ description: z.string().max(255).nullable().optional().openapi({ description: '案例描述', example: '这是一个测试案例' }),
|
|
|
+ tradeDate: z.coerce.date().openapi({ description: '交易日期', example: '2025-05-21T08:00:00Z' })
|
|
|
});
|
|
|
|
|
|
export const UpdateStockXunlianCodesDto = z.object({
|
|
|
@@ -58,5 +58,5 @@ export const UpdateStockXunlianCodesDto = z.object({
|
|
|
name: z.string().max(255).optional().openapi({ description: '案例名称', example: 'test222' }),
|
|
|
type: z.string().max(255).nullable().optional().openapi({ description: '案例类型', example: '技术分析' }),
|
|
|
description: z.string().max(255).nullable().optional().openapi({ description: '案例描述', example: '这是一个测试案例' }),
|
|
|
- tradeDate: z.date().optional().openapi({ description: '交易日期', example: '2025-05-21T08:00:00Z' })
|
|
|
+ tradeDate: z.coerce.date().optional().openapi({ description: '交易日期', example: '2025-05-21T08:00:00Z' })
|
|
|
});
|