Commit 07e610b3f7b4dce773532818d91b1554bdea8073
1 parent
8913572e
🔥 MALL:移除商品收藏的批量操作接口,由前端自身 for 处理
Showing
3 changed files
with
3 additions
and
20 deletions
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/app/favorite/AppFavoriteController.java
| ... | ... | @@ -42,14 +42,6 @@ public class AppFavoriteController { |
| 42 | 42 | return success(productFavoriteService.createFavorite(getLoginUserId(), reqVO.getSpuId())); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - @PostMapping(value = "/create-list") | |
| 46 | - @Operation(summary = "添加多个商品收藏") | |
| 47 | - @PreAuthenticated | |
| 48 | - public CommonResult<Boolean> createFavoriteList(@RequestBody @Valid AppFavoriteBatchReqVO reqVO) { | |
| 49 | - // todo @jason:待实现;如果有已经收藏的,不用报错,忽略即可; | |
| 50 | - return success(true); | |
| 51 | - } | |
| 52 | - | |
| 53 | 45 | @DeleteMapping(value = "/delete") |
| 54 | 46 | @Operation(summary = "取消单个商品收藏") |
| 55 | 47 | @PreAuthenticated |
| ... | ... | @@ -58,15 +50,6 @@ public class AppFavoriteController { |
| 58 | 50 | return success(Boolean.TRUE); |
| 59 | 51 | } |
| 60 | 52 | |
| 61 | - @DeleteMapping(value = "/delete-list") | |
| 62 | - @Operation(summary = "取消多个商品收藏") | |
| 63 | - @PreAuthenticated | |
| 64 | - public CommonResult<Boolean> deleteFavoriteList(@RequestBody @Valid AppFavoriteBatchReqVO reqVO) { | |
| 65 | - // todo @jason:待实现 | |
| 66 | -// productFavoriteService.deleteFavorite(getLoginUserId(), reqVO.getSpuId()); | |
| 67 | - return success(Boolean.TRUE); | |
| 68 | - } | |
| 69 | - | |
| 70 | 53 | @GetMapping(value = "/page") |
| 71 | 54 | @Operation(summary = "获得商品收藏分页") |
| 72 | 55 | @PreAuthenticated | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/order/AppTradeOrderController.java
| ... | ... | @@ -97,7 +97,7 @@ public class AppTradeOrderController { |
| 97 | 97 | @GetMapping("/get-express-track-list") |
| 98 | 98 | @Operation(summary = "获得交易订单的物流轨迹") |
| 99 | 99 | @Parameter(name = "id", description = "交易订单编号") |
| 100 | - public CommonResult<List<?>> getOrderExpressTrackList(@RequestParam("id") Long id) { | |
| 100 | + public CommonResult<List<AppOrderExpressTrackRespDTO>> getOrderExpressTrackList(@RequestParam("id") Long id) { | |
| 101 | 101 | return success(TradeOrderConvert.INSTANCE.convertList02( |
| 102 | 102 | tradeOrderQueryService.getExpressTrackList(id, getLoginUserId()))); |
| 103 | 103 | } | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/order/TradeOrderQueryServiceImpl.java
| ... | ... | @@ -206,7 +206,8 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService { |
| 206 | 206 | |
| 207 | 207 | /** |
| 208 | 208 | * 查询物流轨迹 |
| 209 | - * 加个 spring 缓存,30 分钟;主要考虑及时性要求不高,但是每次调用需要钱;TODO @艿艿:这个时间不会搞了。。。交给你了哈哈哈 | |
| 209 | + * | |
| 210 | + * 缓存的目的:考虑及时性要求不高,但是每次调用需要钱 | |
| 210 | 211 | * |
| 211 | 212 | * @param code 快递公司编码 |
| 212 | 213 | * @param logisticsNo 发货快递单号 |
| ... | ... | @@ -216,7 +217,6 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService { |
| 216 | 217 | @Cacheable(cacheNames = RedisKeyConstants.EXPRESS_TRACK, key = "#code + '-' + #logisticsNo + '-' + #receiverMobile", |
| 217 | 218 | condition = "#result != null") |
| 218 | 219 | public List<ExpressTrackRespDTO> getExpressTrackList(String code, String logisticsNo, String receiverMobile) { |
| 219 | - // 查询物流轨迹 | |
| 220 | 220 | return expressClientFactory.getDefaultExpressClient().getExpressTrackList( |
| 221 | 221 | new ExpressTrackQueryReqDTO().setExpressCode(code).setLogisticsNo(logisticsNo) |
| 222 | 222 | .setPhone(receiverMobile)); | ... | ... |