修复 Swagger 注解错误,导致文档 404 问题

Signed-off-by: 芋道源码 <zhijiantianya@gmail.com>
This commit is contained in:
芋道源码 2022-11-20 09:28:30 +00:00 committed by Gitee
parent 277cbce58f
commit dbf237a1f3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -60,7 +60,7 @@ public class TradeCartController {
@DeleteMapping("/delete") @DeleteMapping("/delete")
@ApiOperation("删除购物车商品") @ApiOperation("删除购物车商品")
@ApiImplicitParam(name = "skuId", value = "商品 SKU 编号的数组", required = true, example = "1024,2048", dataTypeClass = List.class) @ApiImplicitParam(name = "skuIds", value = "商品 SKU 编号的数组", required = true, example = "1024,2048", dataTypeClass = List.class)
@PreAuthenticated @PreAuthenticated
public CommonResult<Boolean> deleteCartItem(@RequestParam("skuIds") List<Long> skuIds) { public CommonResult<Boolean> deleteCartItem(@RequestParam("skuIds") List<Long> skuIds) {
cartService.deleteCartItems(getLoginUserId(), skuIds); cartService.deleteCartItems(getLoginUserId(), skuIds);