import { z } from '@hono/zod-openapi';

// 取消订单请求Schema
export const CancelOrderRequestDto = z.object({
  orderId: z.number().int().positive().describe('订单ID'),
  reason: z.string().min(1).max(500).describe('取消原因')
});

// 取消订单响应Schema
export const CancelOrderResponseDto = z.object({
  success: z.boolean().describe('操作是否成功'),
  message: z.string().describe('操作结果消息')
});