jiangqs
2023-06-06 0f9d03ee930d1c2dc62b34dd2c3522cda91f93cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.ruoyi.goods.controller.concole;
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.goods.service.goods.ShoppingCartService;
import com.ruoyi.system.api.domain.dto.AppShoppingCartDelDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
/**
 * @author jqs34
 * @ClassName ShoppingCartController
 * @description: TODO
 * @date 2023年05月23日
 * @version: 1.0
 */
@RestController
@RequestMapping("/shoppingCart")
public class ShoppingCartController {
 
    @Resource
    private ShoppingCartService shoppingCartService;
 
    @PostMapping("/deleteShoppingCart")
    public R deleteShoppingCart(@RequestBody AppShoppingCartDelDto appShoppingCartDelDto)
    {
        shoppingCartService.deleteByUserIdAndGoodsId(appShoppingCartDelDto.getUserId(),appShoppingCartDelDto.getGoodsId());
        return R.ok();
    }
 
}