| 1 | import { createZodDto } from '@yikart/common' |
| 2 | import { z } from 'zod' |
| 3 | import { PublishUpdateDataSchema } from './publish-update.schema' |
| 4 | |
| 5 | export const UpdatePublishAtBodySchema = z.object({ |
| 6 | publishAt: z.coerce.date().describe('目标发布时间'), |
| 7 | }) |
| 8 | |
| 9 | export class UpdatePublishAtBodyDto extends createZodDto(UpdatePublishAtBodySchema) {} |
| 10 | |
| 11 | export const UpdatePublishedBodySchema = PublishUpdateDataSchema.describe('已发布内容更新数据') |
| 12 | |
| 13 | export class UpdatePublishedBodyDto extends createZodDto(UpdatePublishedBodySchema) {} |
| 14 |