|
|
@@ -486,3 +486,21 @@ export const UpdateOrderDto = z.object({
|
|
|
})
|
|
|
});
|
|
|
|
|
|
+// 订单列表响应
|
|
|
+export const OrderListResponse = z.object({
|
|
|
+ data: z.array(OrderSchema),
|
|
|
+ pagination: z.object({
|
|
|
+ total: z.number().openapi({
|
|
|
+ example: 100,
|
|
|
+ description: '总记录数'
|
|
|
+ }),
|
|
|
+ current: z.number().openapi({
|
|
|
+ example: 1,
|
|
|
+ description: '当前页码'
|
|
|
+ }),
|
|
|
+ pageSize: z.number().openapi({
|
|
|
+ example: 10,
|
|
|
+ description: '每页数量'
|
|
|
+ })
|
|
|
+ })
|
|
|
+});
|