|
@@ -109,7 +109,15 @@ export const GoodsSchema = z.object({
|
|
|
updatedAt: z.coerce.date().openapi({
|
|
updatedAt: z.coerce.date().openapi({
|
|
|
description: '更新时间',
|
|
description: '更新时间',
|
|
|
example: '2024-01-01T12:00:00Z'
|
|
example: '2024-01-01T12:00:00Z'
|
|
|
- })
|
|
|
|
|
|
|
+ }),
|
|
|
|
|
+ createdBy: z.number().int().positive().nullable().openapi({
|
|
|
|
|
+ description: '创建用户ID',
|
|
|
|
|
+ example: 1
|
|
|
|
|
+ }),
|
|
|
|
|
+ updatedBy: z.number().int().positive().nullable().openapi({
|
|
|
|
|
+ description: '更新用户ID',
|
|
|
|
|
+ example: 1
|
|
|
|
|
+ }),
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const CreateGoodsDto = z.object({
|
|
export const CreateGoodsDto = z.object({
|