|
|
|
|
@ -2,14 +2,14 @@ package com.sky.controller.user;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.sky.dto.ShoppingCartDTO;
|
|
|
|
|
import com.sky.entity.ShoppingCart;
|
|
|
|
|
import com.sky.result.Result;
|
|
|
|
|
import com.sky.service.ShoppingCartService;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
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 org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/user/shoppingCart")
|
|
|
|
|
@RestController
|
|
|
|
|
@ -32,4 +32,14 @@ public class ShoppingCartController {
|
|
|
|
|
return Result.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查看购物车
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public Result<List<ShoppingCart>> list(){
|
|
|
|
|
return Result.success(shoppingCartService.list());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|