From 926e531d4f52ae4bd2ac7d4d8b2a84a089e6bf14 Mon Sep 17 00:00:00 2001 From: zhuotianyuan Date: Thu, 22 Jan 2026 17:17:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor(dto):=20=E7=A7=BB=E9=99=A4=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=9A=84ShopyyGetAllOrdersParams=E7=B1=BB=E5=92=8C?= =?UTF-8?q?=E5=86=97=E4=BD=99=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除api.dto.ts中重复定义的ShopyyGetAllOrdersParams类 移除shopyy.dto.ts中冗余的date_paid字段 --- src/dto/api.dto.ts | 17 ----------------- src/dto/shopyy.dto.ts | 2 -- 2 files changed, 19 deletions(-) diff --git a/src/dto/api.dto.ts b/src/dto/api.dto.ts index a10f6c2..b681336 100644 --- a/src/dto/api.dto.ts +++ b/src/dto/api.dto.ts @@ -76,23 +76,6 @@ export class ShopyyGetAllOrdersParams { order_field?: string;//排序字段(默认id) id=订单ID updated_at=最后更新时间 pay_at=支付时间 } -/** - * Shopyy获取所有订单参数DTO - */ -export class ShopyyGetAllOrdersParams { - @ApiProperty({ description: '每页数量', example: 100, required: false }) - per_page?: number; - - @ApiProperty({ description: '支付时间范围开始', example: '2023-01-01T00:00:00Z', required: false }) - pay_at_min?: string; - - @ApiProperty({ description: '支付时间范围结束', example: '2023-01-01T23:59:59Z', required: false }) - pay_at_max?: string; - - @ApiProperty({ description: '排序字段', example: 'id', required: false }) - order_field?: string;//排序字段(默认id) id=订单ID updated_at=最后更新时间 pay_at=支付时间 -} - /** * 批量操作错误项 */ diff --git a/src/dto/shopyy.dto.ts b/src/dto/shopyy.dto.ts index 671711d..c25cc2f 100644 --- a/src/dto/shopyy.dto.ts +++ b/src/dto/shopyy.dto.ts @@ -967,8 +967,6 @@ export interface ShopyyOrder { }>; // 支付时间 pay_at?: number | null; - // 支付时间(备用) - date_paid?: number | string; // 系统支付ID sys_payment_id?: number;