You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chenchuchuan
3d17a27c3f
refactor(yqn): 把 YqnDtos 按接口拆成独立文件
原来 1174 行的单个 YqnDtos 装了 63 个内部类,18 个接口的报文混在一起,
改一个接口要在上千行里翻找,共用结构(BatchAttr 之类)也会被误当成
「跨接口共享类型」。
拆成 18 个文件,一个接口一个:
YqnCreateOrderDtos / YqnOrderDetailDtos / YqnCancelOrderDtos / YqnProductDtos /
YqnFeeDetailDtos / YqnInventoryDtos / YqnCreateInboundDtos / YqnInboundPlanDtos /
YqnTransferDtos / YqnCreateSaleReturnDtos / YqnReturnProcessDtos /
YqnFeeEstimateDtos / YqnTrackingDtos / YqnDestroyPlanDtos / YqnBoxLabelDtos /
YqnSkuLabelDtos / YqnLogisticsProductDtos / YqnWarehouseDtos
拆分原则:
- 每个文件只放该接口的请求 / 响应与内嵌子结构
- 跨接口重复的结构**各自复制一份**(如 BatchAttr 在入库与调拨里各有一份),
避免因共用而被迫一起改
- 保留每个类的 @JsonInclude(NON_NULL):它决定空字段是否出现在报文里,
拆分时漏掉会让请求多出 null 字段(测试已验证并修复)
顺带修一处:TransferMapper 引用的是入库的 BatchAttr,拆分后类型不兼容,
改为使用调拨自己的 BatchAttr。
Co-Authored-By: Claude <noreply@anthropic.com>
|
2 weeks ago |
| .. |
|
main/java/common/ecommerce/yqn
|
refactor(yqn): 把 YqnDtos 按接口拆成独立文件
|
2 weeks ago |
|
test/java/common/ecommerce/yqn
|
fix(yqn): 修复出库链路四处参数丢失 / 语义错误
|
2 weeks ago |