|
|
@@ -30,6 +30,7 @@ export const CreateWechatCouponStockDto = z.object({
|
|
|
stockSendRule: z.any().openapi({ description: '批次发放规则' }),
|
|
|
couponAmount: z.number().int().positive().openapi({ description: '代金券面额(分)', example: 100 }),
|
|
|
couponQuantity: z.number().int().positive().openapi({ description: '代金券数量', example: 1000 }),
|
|
|
+ availableQuantity: z.number().int().min(0).optional().openapi({ description: '可用数量', example: 1000 }),
|
|
|
startTime: z.coerce.date().openapi({ description: '开始时间', example: '2024-01-01T00:00:00Z' }),
|
|
|
endTime: z.coerce.date().openapi({ description: '结束时间', example: '2024-12-31T23:59:59Z' }),
|
|
|
configId: z.number().int().positive().openapi({ description: '微信支付配置ID', example: 1 })
|