修改了商品类别接口
This commit is contained in:
parent
a1bb1d7cee
commit
c19164fd08
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user