|
|
@@ -18,13 +18,21 @@ export const AdvertisementTypeSchema = z.object({
|
|
|
description: '备注',
|
|
|
example: '用于首页轮播图展示'
|
|
|
}),
|
|
|
- createTime: z.number().int().positive().nullable().openapi({
|
|
|
- description: '创建时间(时间戳)',
|
|
|
- example: 1700000000
|
|
|
+ createdAt: z.coerce.date().openapi({
|
|
|
+ description: '创建时间',
|
|
|
+ example: '2024-01-01T00:00:00Z'
|
|
|
}),
|
|
|
- updateTime: z.number().int().nonnegative().nullable().openapi({
|
|
|
- description: '更新时间(时间戳)',
|
|
|
- example: 1700000000
|
|
|
+ updatedAt: z.coerce.date().openapi({
|
|
|
+ description: '更新时间',
|
|
|
+ example: '2024-01-01T00:00:00Z'
|
|
|
+ }),
|
|
|
+ createdBy: z.number().int().positive().nullable().openapi({
|
|
|
+ description: '创建用户ID',
|
|
|
+ example: 1
|
|
|
+ }),
|
|
|
+ updatedBy: z.number().int().positive().nullable().openapi({
|
|
|
+ description: '更新用户ID',
|
|
|
+ example: 1
|
|
|
}),
|
|
|
status: z.number().int().min(0).max(1).default(0).openapi({
|
|
|
description: '状态 0禁用 1启用',
|
|
|
@@ -46,7 +54,7 @@ export const CreateAdvertisementTypeDto = z.object({
|
|
|
description: '备注',
|
|
|
example: '用于首页轮播图展示'
|
|
|
}),
|
|
|
- status: z.coerce.number().int().min(0).max(1).default(0).optional().openapi({
|
|
|
+ status: z.coerce.number<number>().int().min(0).max(1).default(0).optional().openapi({
|
|
|
description: '状态 0禁用 1启用',
|
|
|
example: 1
|
|
|
})
|
|
|
@@ -66,7 +74,7 @@ export const UpdateAdvertisementTypeDto = z.object({
|
|
|
description: '备注',
|
|
|
example: '用于首页轮播图展示'
|
|
|
}),
|
|
|
- status: z.coerce.number().int().min(0).max(1).optional().openapi({
|
|
|
+ status: z.coerce.number<number>().int().min(0).max(1).optional().openapi({
|
|
|
description: '状态 0禁用 1启用',
|
|
|
example: 1
|
|
|
})
|