import { z } from 'zod';

// 确认收货请求DTO
export const ConfirmReceiptRequestDto = z.object({
  orderId: z.number().int().positive('订单ID必须为正整数'),
});

export type ConfirmReceiptRequestDto = z.infer<typeof ConfirmReceiptRequestDto>;

// 确认收货响应DTO
export const ConfirmReceiptResponseDto = z.object({
  success: z.boolean(),
  message: z.string(),
  data: z.object({
    orderId: z.number(),
    state: z.number(),
    updatedAt: z.string().datetime(),
  }).optional(),
});

export type ConfirmReceiptResponseDto = z.infer<typeof ConfirmReceiptResponseDto>;