修改了商品类别接口

This commit is contained in:
chen-xin-zhi 2024-11-05 23:25:35 +08:00
parent a1bb1d7cee
commit c19164fd08

View File

@ -80,7 +80,7 @@ public class CartRecordController {
* @return 是否删除成功 * @return 是否删除成功
*/ */
@PostMapping("/delete") @PostMapping("/delete")
@Operation(summary = "小程序端用户删除购物车的物品", description = "参数:购物车记录删除请求体权限所有人方法名deleteCart") @Operation(summary = "小程序端用户删除购物车的物品", description = "参数:购物车记录删除请求体(商品id列表如[2,3,4])权限所有人方法名deleteCart")
public BaseResponse<Boolean> deleteCart(@RequestBody List<Integer> idList) { public BaseResponse<Boolean> deleteCart(@RequestBody List<Integer> idList) {
if (CollectionUtils.isEmpty(idList)) { if (CollectionUtils.isEmpty(idList)) {
throw new BusinessException(ErrorCode.PARAMS_ERROR); throw new BusinessException(ErrorCode.PARAMS_ERROR);